Set up a cross-account IAM role in the destination account
- Add a new IAM role
- For type of trusted entity select "another AWS account"
- Specify the accountId of the account that will be using the resource in the destination account. You can find your AWS Account ID, which is available on the support homepage when you are logged in.
- Create a policy that allows lambda:InvokeFunction for your function and attach it to this new role.
Create a lambda in the calling account.
- Set up a role for your lambda that is allowed to assumeRole
- Use the AWS SDK to assume the new role in the destination account.
- Pass the credentials to the lambda object when you create it
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.
To pass AWS certification, you should have:
- Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
- Hands on experience with AWS services.
import boto3 | |
print(boto3.client('sts').get_caller_identity()['Account']) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.