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.

已提问 3 个月前138 查看次数
2 回答
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?
已回答 3 个月前
  • 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
已回答 3 个月前
profile picture
专家
已审核 1 个月前

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

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

回答问题的准则