AWS marketplace and terraform

4,921 views
Skip to first unread message

Sean Farrow

unread,
Jul 19, 2016, 11:17:19 PM7/19/16
to terrafo...@googlegroups.com

Hi,

 

Is it possible to provision software/resources from the AWS market place using terraform?

If yes, is there any documentation?

If not, I’d be happy to contribute this as it looks like we’re going to use this functionality.

Any help appreciated.

Kind regards

Sean.

Andrew Langhorn

unread,
Jul 20, 2016, 7:09:15 PM7/20/16
to terrafo...@googlegroups.com
Services in the AWS Marketplace are delivered as an AMI, so you can provision Marketplace services by getting the AMI ID from the Marketplace and using that inside Terraform. The only prerequisite is that you've previously accepted the terms for the product you wish to use using the Marketplace UI, else the API will return an error.

Sean Farrow

unread,
Jul 20, 2016, 9:29:38 PM7/20/16
to terrafo...@googlegroups.com

Hi Andrew,

 

Thanks for this, can I automate the license acceptance in anyway?

Cheers

Sean.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CAEpa1DK9%3DQk6U8T4E5gHWKj8PgkZY%2BZ3pch7aHENvGzCGNByXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Langhorn

unread,
Jul 21, 2016, 3:46:50 AM7/21/16
to terrafo...@googlegroups.com
It seems not, unfortunately. The documentation at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/launch-marketplace-console.html refers to the fact that you need to subscribe before you can launch using the API.

I take from that there is no way to subscribe through the API, which is probably a deliberate thing to get you to read the terms, agree pricing etc.







Vadim Sluzky

unread,
Nov 10, 2018, 11:49:45 AM11/10/18
to Terraform
The workaround following: 
You can spin up EC2 instance from Marketplace then create image from the running instance and use the AMI ID from your images.
Reply all
Reply to author
Forward
0 new messages