Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch error example #333

Closed
Antoine-Sevec opened this issue Sep 24, 2019 · 3 comments
Closed

Launch error example #333

Antoine-Sevec opened this issue Sep 24, 2019 · 3 comments

Comments

@Antoine-Sevec
Copy link

Antoine-Sevec commented Sep 24, 2019

Hello,

Sorry to disturb but I can not make your "simple-vpc" example work :

data "aws_security_group" "default" {
  name   = "default"
  vpc_id = module.vpc.vpc_id
}

module "vpc" {
  source = "terraform-aws-modules/vpc/aws"
  version = "~> 2.0"

  name = "simple-example"

  cidr = "10.0.0.0/16"

  azs             = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
  private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
  public_subnets  = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]

  enable_ipv6 = true

  enable_nat_gateway = true
  single_nat_gateway = true

  public_subnet_tags = {
    Name = "overridden-name-public"
  }

  tags = {
    Owner       = "user"
    Environment = "dev"
  }

  vpc_tags = {
    Name = "vpc-name"
  }
}

I just made a copy / paste and run.
And here is the error observed:

Error: Unsupported argument

  on .terraform/modules/vpc/terraform-aws-modules-terraform-aws-vpc-13fc020/vpc-endpoints.tf line 15, in resource "aws_vpc_endpoint" "s3":
  15:   tags         = local.vpce_tags

An argument named "tags" is not expected here.


Error: Unsupported argument

  on .terraform/modules/vpc/terraform-aws-modules-terraform-aws-vpc-13fc020/vpc-endpoints.tf line 53, in resource "aws_vpc_endpoint" "dynamodb":
  53:   tags         = local.vpce_tags

An argument named "tags" is not expected here.


Error: Unsupported argument

  on .terraform/modules/vpc/terraform-aws-modules-terraform-aws-vpc-13fc020/vpc-endpoints.tf line 97, in resource "aws_vpc_endpoint" "codebuild":
  97:   tags                = local.vpce_tags

An argument named "tags" is not expected here.


Error: Unsupported argument

  on .terraform/modules/vpc/terraform-aws-modules-terraform-aws-vpc-13fc020/vpc-endpoints.tf line 119, in resource "aws_vpc_endpoint" "codecommit":
 119:   tags                = local.vpce_tags

An argument named "tags" is not expected here.


Error: Unsupported argument

  on .terraform/modules/vpc/terraform-aws-modules-terraform-aws-vpc-13fc020/vpc-endpoints.tf line 141, in resource "aws_vpc_endpoint" "git_codecommit":
 141:   tags                = local.vpce_tags

An argument named "tags" is not expected here.


Error: Unsupported argument

  on .terraform/modules/vpc/terraform-aws-modules-terraform-aws-vpc-13fc020/vpc-endpoints.tf line 163, in resource "aws_vpc_endpoint" "config":
 163:   tags                = local.vpce_tags

An argument named "tags" is not expected here.


Error: Unsupported argument

  on .terraform/modules/vpc/terraform-aws-modules-terraform-aws-vpc-13fc020/vpc-endpoints.tf line 185, in resource "aws_vpc_endpoint" "sqs":
 185:   tags                = local.vpce_tags

An argument named "tags" is not expected here.

...
@Antoine-Sevec
Copy link
Author

I juste update provider aws and it's work...

@strictlyd
Copy link

Ran across this issue as well, it looks like since #292 this module is using a new attribute from the aws provider, 2.16.0.

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants