Skip to content

Commit

Permalink
chore: add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
marcportabellaclotet-mt committed Oct 14, 2023
1 parent a895c5d commit df822a0
Show file tree
Hide file tree
Showing 29 changed files with 146 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
atlantis-yaml-generator -e stdout -w multi-workspace --pattern-detector workspace_vars --included-projects "staging$"
1 change: 1 addition & 0 deletions examples/multi-workspace/multiple-projects/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
atlantis-yaml-generator -e stdout -w multi-workspace --pattern-detector workspace_vars
14 changes: 14 additions & 0 deletions examples/multi-workspace/multiple-projects/project_one/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
Empty file.
14 changes: 14 additions & 0 deletions examples/multi-workspace/multiple-projects/project_two/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
Empty file.
1 change: 1 addition & 0 deletions examples/multi-workspace/single-project/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
atlantis-yaml-generator -e stdout -w multi-workspace --pattern-detector workspace_vars
14 changes: 14 additions & 0 deletions examples/multi-workspace/single-project/project_one/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
atlantis-yaml-generator -e stdout -w single-workspace --pattern-detector main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
1 change: 1 addition & 0 deletions examples/single-workspace/multiple-projects/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
atlantis-yaml-generator -e stdout -w single-workspace --pattern-detector main.tf
14 changes: 14 additions & 0 deletions examples/single-workspace/multiple-projects/project_one/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
14 changes: 14 additions & 0 deletions examples/single-workspace/multiple-projects/project_two/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.
1 change: 1 addition & 0 deletions examples/single-workspace/single-project/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
atlantis-yaml-generator -e stdout -w single-workspace --pattern-detector main.tf
14 changes: 14 additions & 0 deletions examples/single-workspace/single-project/project_one/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the provider block to specify the cloud provider you're using
provider "aws" {
region = "us-east-1"
}

# Create a simple AWS S3 bucket
resource "aws_s3_bucket" "example_bucket" {
bucket = "my-terraform-hello-world-bucket"
}

# Output the bucket name
output "bucket_name" {
value = aws_s3_bucket.example_bucket.id
}
Empty file.

0 comments on commit df822a0

Please sign in to comment.