-
Notifications
You must be signed in to change notification settings - Fork 151
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
Failure when creating Proxy CF #49
Comments
Hi, thanks for reaching out! The code of the latest version from the Terraform registry can be found here: Tag/v0.6.2. We mostly use Anyway, I will take a look by tomorrow and test some deployment configurations in |
The problem isn't different region, but different aws profile. // main.tf
provider "aws" {
profile = "my-profile"
}
// dealmore/terraform-aws-next-js/provider.tf
provider "aws" {
region = "us-east-1"
// profile is missing and terraform uses `default` profile
} I've just confirmed that those missing resources from proxy-config module were created in my personal AWS account and not my client's account. Using EDIT: Workaround is actually using I'll check later if there's another way how to pass
|
Unfortunately, I'm gonna drop this module because we simply have too specific requirements for origins and behaviors. Feel free to close this issue. Thank you anyway! This module has very interesting deployment approach. Pity that cloudfront in terraform doesn't allow more granular management of resources. |
Haha, yes CloudFront is a configuration monster 🙈 As soon as Hashicorp has merged the support for Origin & Cache policies we plan to move to a more modular structure of this module, so that it is possible use it together with an external CloudFront resource. Anyway thanks for testing and reporting the bug caused by using multiple AWS profiles. |
Hey, thank you for this module 👍
I can't deploy the app using steps described in tutorial (I also checked all examples).
proxy.aws_cloudfront_distribution
can't be created because referenced Origin Access Identity is invalid:I was checking latest commits and I've found this one ad7047c. I'm using
eu-west-1
as my default provider, but I also haveus-east-1
for global resources:I pass this provider to the
tf_next
module:Could it be related to this commit?
The text was updated successfully, but these errors were encountered: