TABLE OF CONTENTS Infrastructure Automation Why DevOps is Important? What is DevOps? As the name indicates:- Dev + Ops = Development + Operations. Development i) Backend Developers ii) Front-end Developers iii) QA Operations i) System admins ii) Network admins iii) Database admins The practice of operations and development engineers participating together in the entire service lifecycle through a pipeline from design through the development process to production support. This process is known as DevOps. This is a process of automating the whole infrastructure. Now here comes a query, what are we automating? We are automating the whole team's work from the code-building stage to code deployment. Scenario 1:- In a company, there is a project in which developers are writing the code and deploying it to the QA environment frequently for each sprint. This code is then tested by the testing team. Suppose there is a situation of mishap happens where the testing team used the older code ...
TABLE OF CONTENTS Write about meta-arguments and their use in Terraform. Task-01: Meta-Arguments HandsOn Count for-each When you define a resource block in Terraform, by default, this specifies one resource that will be created. To manage several of the same resources, you can use either count or for_each, which removes the need to write a separate block of code for each one. Using these options reduces overhead and makes your code neater. count is what is known as a ‘meta-argument’ defined by the Terraform language. Meta-arguments help achieve certain requirements within the resource block. Write about meta-arguments and their use in Terraform. Meta-arguments in Terraform refer to a set of special arguments that can be used to define how a particular resource or module behaves within a Terraform configuration. These arguments provide additional configuration options and enable fine-grained control over the behaviour of resources or modules. Meta-arguments are prefixed with the...
TABLE OF CONTENTS Pushing the image to ECR Configuring AWS ECS Using AWS Fargate Open port in the security group. Project live execution Aim Deploying an Nginx application image through AWS ECR to AWS Fargate and ECS to make our application live. Pushing the image to ECR Navigate to the AWS ECR and view the push commands. Earlier, we had pushed the image to DockerHub in my previous blogs. The steps and concepts are similar but the platform differs. Generally in IT industry ECR is used as an image registry. Execute commands 1 and 2 in the EC2 instance. Command 1: This will take the ecr token and provide to docker for the connection to the repository. Command 2: This will build the image from the Dockerfile. Execute commands 3 and 4 in EC2 instance. Command 3: This tags the image that we have built using docker. Command 4: This command will push the image from EC2 instance to ECR. After the image push, you can check the ECR for the image. Configuring AWS ECS...
Comments
Post a Comment