1 Answer
- Newest
- Most votes
- Most comments
0
You pass the ExternalId when you assume the role. See:
You should always specify the external ID in your AssumeRole API calls.
Check this link, assume_role, for an example code on passing the ExternalId when assuming the role.
So, the code running in account-x wants to put an event in account-y. The code in account-x just needs to add the ExternalId as a part of the assume role call to get credentials for account-y.
Relevant content
- asked 6 months ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
can you guide me to do this with some code examples using python?
i have gone through those docs previously also. but couldn't find what is the exact implementation that has to be changed.
from emitting side we are just calling the event bridge put events method.
also i am curious that is this external id passing applicable to eventbridge events as its basically an aws serviced and not a third party service