Infrastructure as Code (IaC) Validation and Deployment #7
-
|
You have a Terraform configuration file (main.tf) that defines an S3 bucket (or Azure Storage Account/GCP Cloud Storage bucket). Write a Python script that accepts the Terraform file path as an argument, then performs the following steps:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This Terraform file configures the AWS provider in the us-east-1 region. It defines a single S3 bucket resource (aws_s3_bucket.example_bucket) with a globally unique name. The configuration also exports the created bucket's name as an output value. |
Beta Was this translation helpful? Give feedback.
This Terraform file configures the AWS provider in the us-east-1 region.
It defines a single S3 bucket resource (aws_s3_bucket.example_bucket) with a globally unique name.
The configuration also exports the created bucket's name as an output value.