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달 전464회 조회
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
전문가
검토됨 2일 전
profile pictureAWS
전문가
iBehr
검토됨 9달 전
  • Thanks, it makes sense, AWS support has confirmed the same

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인