AWS Marketplace AMI Opt-In via CloudFormation - EC2 Image Builder

0

I am trying to use a marketplace AMI image in EC2 image builder - running the image pipeline is giving this error: An error occurred (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe.

Can this be integrated in the CFN template? Also if I opt-in manually for the first time for a particular AMI, will it work on updated AMI, like when the same vendor updates the AMI, hence the ami name will change? Thanks

SSHOAIB
已提问 9 个月前463 查看次数
1 回答
4
已接受的回答

Short answer to the question is no, you should accept the terms manually from AWS console in this account and your automation(cloudformation in this case) would work throughout the life of AMI.

Second Question:

I mentioned automation would work throughout the life of AMI, but this is subjective and would depend on factors, what are those changes which happened to AMI and does your source AMI filter condition covers those changes or not. In my experience, I have seen both scenarios, where changes to AMI didn't require to opt-in again and there have been case cases, where I had to opt-in again.

Hope you find this useful.

Abhishek

profile pictureAWS
专家
已回答 9 个月前
profile picture
专家
已审核 1 天前
profile pictureAWS
专家
iBehr
已审核 9 个月前
  • Thanks, it makes sense, AWS support has confirmed the same

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则