Skip to content

Commit

Permalink
add test for aliased provider names
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronya committed Nov 4, 2020
1 parent 696fec1 commit 5c1ef7e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
provider "aws" {
region = "us-east-1"
alias = "custom"
version = "~> 3.0"
}

resource "aws_s3_bucket" "bucket" {
provider = aws.custom

bucket = "my-tf-test-bucket"
acl = "private"
tags = local.terratag_added_main
}
locals {
terratag_added_main = {"env0_environment_id"="40907eff-cf7c-419a-8694-e1c6bf1d1168","env0_project_id"="43fd4ff1-8d37-4d9d-ac97-295bd850bf94"}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
provider "aws" {
region = "us-east-1"
alias = "custom"
version = "~> 3.0"
}

resource "aws_s3_bucket" "bucket" {
provider = aws.custom

bucket = "my-tf-test-bucket"
acl = "private"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
provider "aws" {
region = "us-east-1"
alias = "custom"
version = "~> 3.0"
}

resource "aws_s3_bucket" "bucket" {
provider = aws.custom

bucket = "my-tf-test-bucket"
acl = "private"
}

0 comments on commit 5c1ef7e

Please sign in to comment.