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

Missing validation about AWS available regions #294

Open
g-iannelli opened this issue Feb 21, 2023 · 0 comments
Open

Missing validation about AWS available regions #294

g-iannelli opened this issue Feb 21, 2023 · 0 comments
Labels
bug Something isn't working furyctl-ng size/S

Comments

@g-iannelli
Copy link
Contributor

g-iannelli commented Feb 21, 2023

echo $AWS_REGION && cat barebone.eu-west-1.yml | yq -e .spec.region && AWS_DEFAULT_REGION=eu-south-1 AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY furyctl-ng create cluster -c barebone.eu-west-1.yml --distro-location 'git::git@github.com:sighupio/fury-distribution.git?depth=1&ref=feature/furyctl-next' --phase infrastructure

eu-south-1
INFO Downloading distribution...
INFO Validating configuration file...
INFO Downloading dependencies...
INFO Validating dependencies...
INFO Creating cluster...
INFO Running infrastructure phase...
ERRO error while creating cluster: error while executing infrastructure phase: error running terraform plan: error running terraform plan: /Users/giuseppe.iannelli/.furyctl/bin/terraform/0.15.4/terraform /Users/giuseppe.iannelli/.furyctl/bin/terraform/0.15.4/terraform plan -no-color -out plan/terraform.plan: command failed - exit status 1
out:
err:
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: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
	status code: 403, request id: 2784b636-2836-4fcd-a7df-44e828da5bcc

  with provider["registry.terraform.io/hashicorp/aws"],
  on <empty> line 0:
  (source code not available)

AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY aws ec2 describe-regions | jq -r '.Regions[] | select(.RegionName | contains("eu-south-1"))'
AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY aws ec2 describe-regions | jq -r '.Regions[] | select(.RegionName | contains("eu-west-1"))'
{
  "Endpoint": "ec2.eu-west-1.amazonaws.com",
  "RegionName": "eu-west-1",
  "OptInStatus": "opt-in-not-required"
}
@g-iannelli g-iannelli added bug Something isn't working furyctl-ng labels Feb 21, 2023
@omissis omissis added the size/S label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working furyctl-ng size/S
Projects
None yet
Development

No branches or pull requests

2 participants