{"id":975,"date":"2023-03-06T00:00:00","date_gmt":"2023-03-06T05:00:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=975"},"modified":"2023-03-07T14:35:10","modified_gmt":"2023-03-07T19:35:10","slug":"aws-bootstraping","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/aws-bootstraping\/","title":{"rendered":"AWS Bootstrapping"},"content":{"rendered":"\n<p>Bootstrapping means running commands when a machine starts. The script is run only once when the machine starts and never again. It is done by running EC2 user data scripts. It is run when a machine is booted, hence the name bootstrapping. <\/p>\n\n\n\n<p>What kind of tasks can we automate with an EC2 user data script:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>install updates<\/li>\n\n\n\n<li>install software<\/li>\n\n\n\n<li>download files from the Internet<\/li>\n\n\n\n<li>other tasks you require it to execute<\/li>\n<\/ul>\n\n\n\n<p>AWS (Amazon Web Services) provides a number of tools and services to help you bootstrap your applications and infrastructure on their platform. Here are some common steps to bootstrap an AWS environment:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create an AWS account: The first step is to create an AWS account if you haven&#8217;t already. This will give you access to the AWS Management Console where you can manage your services.<\/li>\n\n\n\n<li>Set up IAM (Identity and Access Management): IAM allows you to manage access to your AWS resources. You can create users, groups, and roles with specific permissions. It&#8217;s a best practice to set up IAM before creating any resources.<\/li>\n\n\n\n<li>Choose a region: AWS has multiple regions around the world where you can deploy your resources. Choose the region closest to your users or where you want to store your data.<\/li>\n\n\n\n<li>Choose a compute service: AWS has several compute services to choose from, including EC2, Lambda, and Elastic Beanstalk. EC2 is a virtual machine that you can configure and manage. Lambda is a serverless compute service where you write code and AWS manages the underlying infrastructure. Elastic Beanstalk is a managed platform that deploys and scales your applications automatically.<\/li>\n\n\n\n<li>Choose a storage service: AWS provides several storage services, including S3, EBS, and EFS. S3 is an object storage service that allows you to store and retrieve files. EBS is a block storage service that provides persistent storage for EC2 instances. EFS is a network file system that you can mount to your EC2 instances.<\/li>\n\n\n\n<li>Set up networking: AWS provides several networking services, including VPC, Route 53, and CloudFront. VPC is a virtual private cloud that you can configure to isolate your resources. Route 53 is a DNS service that you can use to route traffic to your resources. CloudFront is a content delivery network that caches your content at edge locations around the world.<\/li>\n\n\n\n<li>Automate deployment: AWS provides several deployment services, including CodeDeploy, CodePipeline, and CloudFormation. CodeDeploy allows you to deploy your applications automatically to EC2 instances. CodePipeline is a continuous delivery service that automates your release pipeline. CloudFormation is a service that allows you to create and manage AWS resources using templates.<\/li>\n<\/ol>\n\n\n\n<p>By following these steps, you can bootstrap your AWS environment and start building your applications and infrastructure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bootstrapping means running commands when a machine starts. The script is run only once when the machine starts and never again. It is done by running EC2 user data scripts. It is run when a machine is booted, hence the name bootstrapping. What kind of tasks can we automate with an EC2 user data script: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1030,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[126,167],"tags":[127,351],"class_list":["post-975","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","category-cloud","tag-aws","tag-bootstrapping"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=975"}],"version-history":[{"count":2,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/975\/revisions"}],"predecessor-version":[{"id":1047,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/975\/revisions\/1047"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media\/1030"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}