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

Support for AWS_CONTAINER_CREDENTIALS_FULL_URI #390

Closed
2 tasks
skulljoi opened this issue Jun 20, 2023 · 4 comments
Closed
2 tasks

Support for AWS_CONTAINER_CREDENTIALS_FULL_URI #390

skulljoi opened this issue Jun 20, 2023 · 4 comments
Assignees
Labels
feature-request A feature should be added or improved. investigating This issue is being investigated and/or work is in progress to resolve the issue. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 2 days.

Comments

@skulljoi
Copy link

Describe the feature

I would like to use the AWS_CONTAINER_CREDENTIALS_FULL_URI for grab the credentials for this SDK

Use Case

I have a component that connects to the IoT core and the credentials are delivered by a container

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

1.13.0

Environment details (OS name and version, etc.)

Linux Arm / raspberrypi

@skulljoi skulljoi added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 20, 2023
@skulljoi
Copy link
Author

Waiting for more tests, looks like it works, it just does not have a sample

@yasminetalby yasminetalby self-assigned this Jun 20, 2023
@yasminetalby
Copy link

Hello @skulljoi,

Thank you very much for your submission.
Could you provide more details about your specific use case?

Best,

Yasmine

@yasminetalby yasminetalby added investigating This issue is being investigated and/or work is in progress to resolve the issue. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 2 days. and removed needs-triage This issue or PR still needs to be triaged. labels Jun 20, 2023
@skulljoi
Copy link
Author

As I mentioned it just works we just need to set an environment variable

	process.env.AWS_EC2_METADATA_DISABLED = false;
	const configBuilder = iot.AwsIotMqttConnectionConfigBuilder.new_with_websockets({
		region: 'eu-west-1',
		credentials_provider: auth.AwsCredentialsProvider.newDefault(),
	});

then it can connect using websocket and the container credentials

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. investigating This issue is being investigated and/or work is in progress to resolve the issue. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 2 days.
Projects
None yet
Development

No branches or pull requests

2 participants