I Tried Out EBS Volume Snapshot Operations with CloudFormation and Cloud Control API

I Tried Out EBS Volume Snapshot Operations with CloudFormation and Cloud Control API

With CloudFormation and Cloud Control API, whose support coverage reportedly expanded thanks to an AI-driven internal framework, I created and deleted an EBS volume snapshot (AWS::EC2::Snapshot) and checked the CloudTrail logs.
2026.11.25

This page has been translated by machine translation. View original

Introduction

On November 24, 2026, AWS announced that AWS CloudFormation now supports 206 new resource types (across 88 services).

https://aws.amazon.com/jp/about-aws/whats-new/2026/11/cloudformation-coverage-expansion/

This article introduces the results of trying out operations with CloudFormation and Cloud Control API on Amazon EC2 Snapshot (AWS::EC2::Snapshot), one of the newly added resource types.

Test Environment

  • Region: N. Virginia (us-east-1)
  • AWS CLI: 2.42.2 (default region is us-east-1)

CloudFormation

Template

I created a template that creates a 1 GiB gp3 volume with AWS::EC2::Volume and its snapshot with AWS::EC2::Snapshot.

snapshot-stack.yaml

AWSTemplateFormatVersion: '2010-09-09'
Description: EBS volume and its snapshot with AWS::EC2::Snapshot
Resources:
  Volume:
    Type: AWS::EC2::Volume
    Properties:
      AvailabilityZone: us-east-1a
      Size: 1
      VolumeType: gp3
      Tags:
        - Key: Name
          Value: cfn-snapshot-demo
  Snapshot:
    Type: AWS::EC2::Snapshot
    Properties:
      VolumeId: !Ref Volume
      Description: cfn-snapshot-demo
      Tags:
        - Key: Name
          Value: cfn-snapshot-demo

Creation

I created the stack.

aws cloudformation create-stack --stack-name cfn-snapshot-demo --template-body file://snapshot-stack.yaml
aws cloudformation wait stack-create-complete --stack-name cfn-snapshot-demo

The stack event times (UTC) are as follows.

Time (UTC) Target Status
03:49:12 Stack CREATE_IN_PROGRESS
03:49:22 Volume CREATE_COMPLETE
03:49:23 Snapshot CREATE_IN_PROGRESS
03:50:12 Snapshot CREATE_COMPLETE
03:50:13 Stack CREATE_COMPLETE

When I retrieved the list of snapshots with the EC2 API, there was one.

$ aws ec2 describe-snapshots --owner-ids self
{
    "Snapshots": [
        {
            "Tags": [
                {
                    "Key": "Name",
                    "Value": "cfn-snapshot-demo"
                }
            ],
            "StorageTier": "standard",
            "TransferType": "standard",
            "CompletionTime": "2026-11-25T03:49:58.568000+00:00",
            "FullSnapshotSizeInBytes": 0,
            "SnapshotId": "snap-0123456789abcdef0",
            "VolumeId": "vol-0123456789abcdef0",
            "State": "completed",
            "StartTime": "2026-11-25T03:49:23.951000+00:00",
            "Progress": "100%",
            "OwnerId": "123456789012",
            "Description": "cfn-snapshot-demo",
            "VolumeSize": 1,
            "Encrypted": false
        }
    ]
}

Deletion

The template does not specify a DeletionPolicy. I deleted the stack in this state.

aws cloudformation delete-stack --stack-name cfn-snapshot-demo
aws cloudformation wait stack-delete-complete --stack-name cfn-snapshot-demo

When I ran describe-snapshots after deletion, there were 0 snapshots.

$ aws ec2 describe-snapshots --owner-ids self
{
    "Snapshots": []
}

Cloud Control API

Creation

Since the Cloud Control API creates only the snapshot, I first prepared the source volume with the EC2 API. I created a 1 GiB gp3 volume and waited until it became available. <VolumeId> is the ID of the created volume.

aws ec2 create-volume --availability-zone us-east-1a --size 1 --volume-type gp3 --tag-specifications 'ResourceType=volume,Tags=[{Key=Name,Value=ccapi-snapshot-demo}]'
aws ec2 wait volume-available --volume-ids <VolumeId>

I saved the desired state to pass at creation time as ccapi-desired-state.json.

{"VolumeId":"<VolumeId>","Description":"ccapi-snapshot-demo","Tags":[{"Key":"Name","Value":"ccapi-snapshot-demo"}]}
aws cloudcontrol create-resource --type-name AWS::EC2::Snapshot --desired-state file://ccapi-desired-state.json

When I passed the RequestToken from the response to get-resource-request-status, the OperationStatus was SUCCESS, and the Identifier was an ARN.

$ aws cloudcontrol get-resource-request-status --request-token <RequestToken>
{
    "ProgressEvent": {
        "TypeName": "AWS::EC2::Snapshot",
        "Identifier": "arn:aws:ec2:us-east-1:123456789012:snapshot/snap-0abcdef1234567890",
        "RequestToken": "<RequestToken>",
        "Operation": "CREATE",
        "OperationStatus": "SUCCESS",
        "EventTime": "2026-11-25T12:52:40.396000+09:00"
    }
}

Using get-resource with this ARN, I was able to retrieve the snapshot's properties. The same snapshot was also displayed as completed by the EC2 API's describe-snapshots.

AWS::EC2::Snapshot is not listed in the Cloud Control API's list of supported resources (updated December 23, 2025), but I was able to operate on this type.

https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html

Deletion

I ran delete-resource, specifying the Identifier included in the response of get-resource-request-status. <Identifier> is the ARN above.

aws cloudcontrol delete-resource --type-name AWS::EC2::Snapshot --identifier <Identifier>

The OperationStatus from get-resource-request-status was SUCCESS. describe-snapshots after deletion showed 0 snapshots.

CloudTrail

Using CloudTrail event history, I compared the operations recorded for snapshot creation and deletion.

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=cloudformation.amazonaws.com
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=cloudcontrolapi.amazonaws.com
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateSnapshot
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateTags
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteSnapshot

This is the record from creating and deleting the stack with CloudFormation.

Time (UTC) Event source Event invokedBy
03:49:12 cloudformation.amazonaws.com CreateStack None
03:49:24 ec2.amazonaws.com CreateSnapshot cloudformation.amazonaws.com
03:49:26 ec2.amazonaws.com CreateTags cloudformation.amazonaws.com
03:50:51 cloudformation.amazonaws.com DeleteStack None
03:50:56 ec2.amazonaws.com DeleteSnapshot cloudformation.amazonaws.com

This is the record from creating and deleting with the Cloud Control API.

Time (UTC) Event source Event invokedBy
03:51:51 cloudcontrolapi.amazonaws.com CreateResource None
03:51:52 ec2.amazonaws.com CreateSnapshot cloudformation.amazonaws.com
03:51:54 ec2.amazonaws.com CreateTags cloudformation.amazonaws.com
03:52:53 cloudcontrolapi.amazonaws.com DeleteResource None
03:52:55 ec2.amazonaws.com DeleteSnapshot cloudformation.amazonaws.com

The event sources of CreateStack and CreateResource were cloudformation.amazonaws.com and cloudcontrolapi.amazonaws.com, respectively. For the EC2 CreateSnapshot, CreateTags, and DeleteSnapshot events, invokedBy was cloudformation.amazonaws.com via both paths.

Summary

Using CloudFormation and the Cloud Control API, I was able to confirm the creation and deletion of an EBS volume snapshot.

An AI-driven internal framework was used for this addition of resource types. This framework is said to have reduced the cost of bringing resource types into CloudFormation, establishing a system that can continuously expand coverage.

With traditional CloudFormation, there were cases where some services were not supported or support for new services was delayed, so I look forward to continuous improvements through the new framework.

Share this article

AWSのお困り事はクラスメソッドへ