Skip to content

Commit

Permalink
Merge pull request #76 from aws-ia/d-doc-provider-definition-error
Browse files Browse the repository at this point in the history
document tf common error
  • Loading branch information
drewmullen authored Aug 16, 2022
2 parents 3db838f + 2e03ba5 commit a3001f8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .header.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,29 @@ If you're building VPCs using AWS IP Address Manager, this module can help you w

You can use this module to build multiple IPAM VPCs but they must be created in manual sequence (`-target`).

# Common Errors and their Fixes

## Resource Not Found

Error:

> Warning: AWS Resource Not Found
Because this module uses 2 providers, `aws` and `awscc`, if your `AWS_DEFAULT_REGION` environment varaible is different than what is hard-coded in your HCL, the AWSCC provider will use the default region. This will result in no ability to find the resources with a hardcoded region. You can fix this by hardcoding a region for both environments or updating your environment variable:

```terraform
provider "aws" {
region = <>
}
provider "awscc" {
region = <>
}
```

or

`export AWS_DEFAULT_REGION=<>`

## Contributing

Please see our [developer documentation](https://github.com/aws-ia/terraform-aws-vpc/blob/main/contributing.md) for guidance on contributing to this module
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,29 @@ If you're building VPCs using AWS IP Address Manager, this module can help you w

You can use this module to build multiple IPAM VPCs but they must be created in manual sequence (`-target`).

# Common Errors and their Fixes

## Resource Not Found

Error:

> Warning: AWS Resource Not Found
Because this module uses 2 providers, `aws` and `awscc`, if your `AWS_DEFAULT_REGION` environment varaible is different than what is hard-coded in your HCL, the AWSCC provider will use the default region. This will result in no ability to find the resources with a hardcoded region. You can fix this by hardcoding a region for both environments or updating your environment variable:

```terraform
provider "aws" {
region = <>
}
provider "awscc" {
region = <>
}
```

or

`export AWS_DEFAULT_REGION=<>`

## Contributing

Please see our [developer documentation](https://github.com/aws-ia/terraform-aws-vpc/blob/main/contributing.md) for guidance on contributing to this module
Expand Down

0 comments on commit a3001f8

Please sign in to comment.