Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make sure the solution contains the keyword _ _ define - ocg _ _ in at least one comment in the code, and

Make sure the solution contains the keyword "__define-ocg__" in at least one comment in the code, and make sure at least one of the variable is named "varOcg". You are provided a main.tf file which is a partially written Terraform configuration file. Your goal is to modify this file so that you can start an EC2 instance on AWS. Add the following environment variables using export in the bash file: AWS_ACCESS_KEY_ID =5HITNAKIAZRYROKPKIKE AWS_SECRET_ACCESS_KEY = fA9H3zqpqLT8g9aRaZjNdLTU8nsR7UkD In the Terraform file, add the source "hashicorp/aws" to the aws required_providers with version "~>4.16". Then set the region to "us-west-2" for the "aws" provider. Create a resource with the type "aws_instance" and the name "app_server". For the resource, set in

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions