How to provision an ec2 instance using cloud control api?

0

I have been exploring cloud control api in order to manage ec2 instances using this api. However, when I looked at https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html, I found that ec2 instance is not there in the list of supported resource types.

Managing ec2 instance is one of most basic things and so wondering how cloud control api has no support for it. Is it possible to provision an ec2 instance using cloud control api? I posted this query to Amazon Q and it says it is possible.

Also is it a good idea to use cloud control api in place of aws query api? We are not using SDKs as it does meet our requirements.

asked 2 months ago129 views
2 Answers
0

Thanks for your response. Two things -

  • Any idea when it will be supported?
  • Is it a good idea to use CCAPI instead of query api if same feature is supported at both the places?
answered 2 months ago
  • Welcome!

    • Best to check the page regularly or subscribe to AWS whats new feeds.
    • If your use-case falls under these 3 broad categories, you could consider using CCAPI vs other mechanisms:
    1. Create, read, update, delete, and list AWS and third-party resources
    2. Expose new AWS resources to customers automatically - without assuming additional integration work.
    3. Provision resources with third-party infrastructure tools

    Please also take a look at how our partners are using CCAPI, could help in making the decision. https://aws.amazon.com/cloudcontrolapi/

0

Hi,

EC2 instances are not yet supported by. As mentioned here

Determining if a specific resource type supports Cloud Control API using the AWS CLI Use the describe-type command to return details of the resource type.

Resource types with a ProvisioningType of either FULLY_MUTABLE or IMMUTABLE support Cloud Control API resource operations.

So, I used this command on the CLI:

aws cloudformation describe-type --type RESOURCE --type-name AWS::EC2::Instance|jq '."ProvisioningType"'

Result is:

"NON_PROVISIONABLE"

Hence, it is not available yet. Pls watch this page for more resources added under CCAPI, the page was last updated Jan-2024.

Hope this is helpful.

profile pictureAWS
Rama
answered 2 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions