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

Issues with terraform apply #78

Open
rollovd opened this issue Sep 24, 2023 · 0 comments
Open

Issues with terraform apply #78

rollovd opened this issue Sep 24, 2023 · 0 comments

Comments

@rollovd
Copy link

rollovd commented Sep 24, 2023

Hello!
I try to launch terraform apply after terraform init (I'm following this guide: https://outerbounds.com/engineering/deployment/aws-k8s/deployment/#initialize-your-terraform-workspace). I'm using latest version of this repo.

But terraform apply initially returned me the following error:

╷
│ Warning: Argument is deprecated
│ 
│   with module.metaflow-datastore.aws_s3_bucket.this,
│   on .terraform/modules/metaflow-datastore/modules/datastore/s3.tf line 3, in resource "aws_s3_bucket" "this":
│    3:   acl           = "private"
│ 
│ Use the aws_s3_bucket_acl resource instead
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/metaflow-datastore/modules/datastore/rds.tf line 109, in resource "aws_db_instance" "this":
│  109:   name                      = var.db_name                                                  # unique id for CLI commands (name of DB table which is why we're not adding the prefix as no conflicts will occur and the API expects this table name)
│ 
│ An argument named "name" is not expected here.

I manually commented this argument, but afterwards I still have a lot of errors:

╷
│ Warning: Argument is deprecated
│ 
│   with module.metaflow-datastore.aws_s3_bucket.this,
│   on .terraform/modules/metaflow-datastore/modules/datastore/s3.tf line 3, in resource "aws_s3_bucket" "this":
│    3:   acl           = "private"
│ 
│ Use the aws_s3_bucket_acl resource instead
╵
╷
│ Error: Invalid provider configuration
│ 
│ Provider "registry.terraform.io/hashicorp/aws" requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider
│ documentation.
│ 
╵
╷
│ Error: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: af356c1f-c5e6-4565-abf2-a2d0bbfef591, api error InvalidClientTokenId: The security token included in the request is invalid.
│ 
│   with provider["registry.terraform.io/hashicorp/aws"],
│   on <empty> line 0:
│   (source code not available)
│ 

Could you help me to resolve it? Or maybe explain how to get rid of these issues?
Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant