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
preguntada hace 9 meses463 visualizaciones
1 Respuesta
4
Respuesta aceptada

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
EXPERTO
respondido hace 9 meses
profile picture
EXPERTO
revisado hace un día
profile pictureAWS
EXPERTO
iBehr
revisado hace 9 meses
  • Thanks, it makes sense, AWS support has confirmed the same

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas