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

Adding TOKEN as header to curl command for INSTANCE_ROLE and Region #119

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

rishij39
Copy link

Issue #, if available:
credential.sh was failing to set INSTANCE_ROLE and Region env variables
Description of changes:
Adding TOKEN as header to curl command for INSTANCE_ROLE and Region

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tebanieo
Copy link
Contributor

I confirmed the current credentials.sh is returning an error

WSParticipantRole:~/environment/OpenSearchPipeline $ . ./credentials.sh 
parse error: Invalid numeric literal at line 2, column 0
parse error: Invalid numeric literal at line 2, column 0
parse error: Invalid numeric literal at line 2, column 0
METADATA_AWS_ACCESS_KEY_ID: 
METADATA_AWS_SECRET_ACCESS_KEY: 
METADATA_AWS_SESSION_TOKEN: 
METADATA_AWS_REGION: 
METADATA_AWS_ROLE: <REDACTED>role/ddb-Cloud9Role-0WaehjdX3PJC

and the suggested solution will fix it.

WSParticipantRole:~/environment/OpenSearchPipeline $ . ./credentials.sh 
METADATA_AWS_ACCESS_KEY_ID: ASIA3Q<REDACTED>
METADATA_AWS_SECRET_ACCESS_KEY: gsY3jAXO<REDACTED>
METADATA_AWS_SESSION_TOKEN: <REDACTED>
METADATA_AWS_REGION: us-west-2
METADATA_AWS_ROLE: <REDACTED>role/ddb-Cloud9Role-0WaehjdX3PJC

@tebanieo tebanieo merged commit 09bd58e into aws-samples:master Aug 20, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants