-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
upgrade aws provider #8
Conversation
Hi @AlyRagab Could you please adjust this for Terraform and for the providers? |
Here's an example cloudposse/terraform-aws-codebuild#70 |
versions.tf
Outdated
@@ -2,7 +2,7 @@ terraform { | |||
required_version = ">= 0.12.0, < 0.14.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required_version = ">= 0.12.0, < 0.14.0" | |
required_version = ">= 0.12.0" |
versions.tf
Outdated
@@ -2,7 +2,7 @@ terraform { | |||
required_version = ">= 0.12.0, < 0.14.0" | |||
|
|||
required_providers { | |||
aws = "~> 2.0" | |||
aws = "~> 3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws = "~> 3.0" | |
aws = ">= 2.0" |
versions.tf
Outdated
@@ -2,7 +2,7 @@ terraform { | |||
required_version = ">= 0.12.0, < 0.14.0" | |||
|
|||
required_providers { | |||
aws = "~> 2.0" | |||
aws = "~> 3.0" | |||
null = "~> 2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null = "~> 2.0" | |
null = "=> 2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @AlyRagab , please see comments.
Please also run the following commands from the repo root:
make init
make github/init
make readme
Thanks @aknysh for your comments |
/test all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlyRagab
Sorry, but we also need to update the test to use Go
modules.
Can you please run these commands:
make init
make github/init
cd test/src/
go mod init github.com/cloudposse/$(cd ../../ && basename `pwd`)
go mod tidy
git rm Gopkg.*
git add go.*
Thanks a lot for your contribution.
/rebuild-readme |
/test all |
…aws-vpn-connection into upgrade-aws-provider
/test all |
/rebuild-readme |
/test all |
/test all |
Upgrading the aws provider version to be "~> 3.0" because the current "2.0" does not work if we have another resources depend on version 3.0
Error :
Initializing provider plugins...
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider hashicorp/aws:
no available releases match the given constraints ~> 3.0, ~> 2.0