Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

AWS_REGION is not set in the Cloud 9 environment #543

Open
khuey opened this issue Aug 15, 2018 · 2 comments · May be fixed by #563
Open

AWS_REGION is not set in the Cloud 9 environment #543

khuey opened this issue Aug 15, 2018 · 2 comments · May be fixed by #563
Labels

Comments

@khuey
Copy link

khuey commented Aug 15, 2018

And when you get to https://github.com/aws-samples/aws-workshop-for-kubernetes/tree/master/01-path-basics/102-your-first-cluster#create-the-worker-nodes creating that CloudFormation stack from the Cloud9 environment will fail.

@buzzsurfr
Copy link
Contributor

The lab-ide-build.sh sets the value of AWS_DEFAULT_REGION, which is the preferred environment variable for aws-cli. Is there a specific need for AWS_REGION to be set?

# Configure AWS CLI
availability_zone=$(curl http://169.254.169.254/latest/meta-data/placement/availability-zone)
export AWS_DEFAULT_REGION=${availability_zone%?}

@buzzsurfr buzzsurfr added the hold label Aug 28, 2018
@PaulMaddox
Copy link

Saw this today too when running the workshop. One person (out of ~50) had this issue, and the awscli didn't have a region set. Setting one with aws configure resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants