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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南