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...
25 basic Linux Commands Linux is a family of open-source Unix operating systems based on the Linux Kernel. They include Ubuntu, Fedora, Debian, openSUSE, and Red Hat. Using Linux to manage a Virtual Private Server (VPS) is common practice. However, we recommend utilizing the command-line interface (CLI) because it’s quicker and offers more control. Tasks that require multiple steps on the GUI can be done in a matter of seconds by entering commands into the CLI. By the end of this article, we will be able to learn most commonly command that are being used in Linux : Firstly, What is a linux command ? A Linux command is a program or utility that runs on the CLI – a console that interacts with the system via texts and processes. It’s similar to the Command Prompt application in Windows. Syntax for a Linux Command : Here’s what a Linux command’s general syntax looks like: CommandName [option(s)] [parameter(s)] A command may contain an option or a parameter. In some cases, ...
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