Hello everyone, sorry if this is a dumb question, ...
# prefect-server
l
Hello everyone, sorry if this is a dumb question, we are trying to make the prefect agent running on a ec2 instance in one aws account, to launch an instance, attach an instance profile, and then terminate it on another aws account. Is that possible with prefect? We have one role in the first aws account, but I think that to be able to do this I need another role in the second aws account, but I m not sure how to let the prefect agent knows about the role on the second aws account
a
You would need cross-account IAM roles. You can attach this IAM role to the EC2 instance the Prefect agent is running on. Alternatively, you could set up the AWS CLI in a way that you have two profiles, one for each account. You could then use the relevant profile either in your boto3 session or in your ShellTask AWS CLI commands
l
thanks! related with Monica and Ross? 🙂
💯 1
a
hahahahah no, not at all 😂
🤣 1