Skip to content

AWS Provider Endpoints not working on 3.64.0 #21637

@iamperson347

Description

@iamperson347

Terraform CLI and Terraform AWS Provider Version

Terraform v1.0.1
on linux_amd64

  • provider registry.terraform.io/hashicorp/aws v3.64.0
  • provider registry.terraform.io/hashicorp/vault v2.24.1

Relates #21641

Affected Resource(s)

AWS Provider

Terraform Configuration Files

Sample configuration for AWS Provider that is failing (some values replaced with <value>:

provider "aws" {
  alias  = "<alias name>"
  region = "us-gov-west-1"
  assume_role {
    role_arn     = "<role arn>"
    session_name = "<session name>"
  }

  endpoints {
    firehose = "https://firehose-fips.us-gov-west-1.amazonaws.com"
    s3       = "https://s3-fips.us-gov-west-1.amazonaws.com"
    lambda   = "https://lambda-fips.us-gov-west-1.amazonaws.com"
  }
}

Expected Behavior

terraform plan/apply works with custom AWS Service Endpoints

Actual Behavior


│ Error: Unsupported argument

│ on providers.tf line 16, in provider "aws":
│ 16: firehose = "https://firehose-fips.us-gov-west-1.amazonaws.com"

│ An argument named "firehose" is not expected here.


│ Error: Unsupported argument

│ on providers.tf line 17, in provider "aws":
│ 17: s3 = "https://s3-fips.us-gov-west-1.amazonaws.com"

│ An argument named "s3" is not expected here.


│ Error: Unsupported argument

│ on providers.tf line 18, in provider "aws":
│ 18: lambda = "https://lambda-fips.us-gov-west-1.amazonaws.com"

│ An argument named "lambda" is not expected here.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.providerPertains to the provider itself, rather than any interaction with AWS.regressionPertains to a degraded workflow resulting from an upstream patch or internal enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions