Skip to content

Commit

Permalink
chore: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
marcportabellaclotet-mt committed Oct 14, 2023
1 parent 94bad2b commit df2436c
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ provider "aws" {

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
bucket = format("%s-%s","my-terraform-hello-world-bucket",var.environment)
}

# Output the bucket name
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform plan -var-file=workspace_vars/staging.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variable "environment" {
type = string
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
environment = "production"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
environment = "staging"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ provider "aws" {

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
bucket = format("%s-%s","my-terraform-hello-world-bucket",var.environment)
}

# Output the bucket name
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform plan -var-file=workspace_vars/staging.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variable "environment" {
type = string
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
environment = "production"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
environment = "staging"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ provider "aws" {

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
bucket = format("%s-%s","my-terraform-hello-world-bucket",var.environment)
}

# Output the bucket name
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform plan -var-file=workspace_vars/staging.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variable "environment" {
type = string
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
environment = "production"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
environment = "staging"

0 comments on commit df2436c

Please sign in to comment.