Cloud Control
Introduction
Section titled “Introduction”Cloud Control API allows you to create, read, update, delete, and list (CRUD-L) resources in AWS. Cloud Control API provides a standardized interface provision and access these resources in a programmatic way.
LocalStack allows you to use the Cloud Control API in your local environment to interact with your emulated resources. The supported APIs are available on our API Coverage section, which provides information on the extent of Cloud Control’s integration with LocalStack.
Getting started
Section titled “Getting started”This guide is designed for users new to Cloud Control and assumes basic knowledge of the AWS CLI and our awslocal
wrapper script.
Start your LocalStack container using your preferred method. We will demonstrate how to get and list resources using the Cloud Control API.
List resources
Section titled “List resources”You can list resources using the ListResources
API.
Create an S3 bucket using the following command:
awslocal s3 mb s3://my-bucket
List the resources using the following command:
awslocal cloudcontrol list-resources --type-name AWS::S3::Bucket
You should see the S3 bucket in the output.
{ "ResourceDescriptions": [ { "Identifier": "my-bucket", "Properties": "{\"BucketName\":\"my-bucket\"}" } ], "TypeName": "AWS::S3::Bucket"}
Get a resource
Section titled “Get a resource”You can get a resource using the GetResource
API.
awslocal cloudcontrol get-resource --type-name AWS::S3::Bucket --identifier my-bucket
{ "TypeName": "AWS::S3::Bucket", "ResourceDescription": { "Identifier": "my-bucket", "Properties": "{\"BucketName\":\"my-bucket\"}" }}
Supported Resources
Section titled “Supported Resources”The following resources are supported by Cloud Control:
AWS::ApiGateway::RestApi
AWS::CloudFormation::Stack
AWS::DynamoDB::Table
AWS::EC2::VPC
AWS::Events::EventBus
AWS::IAM::Group
AWS::IAM::Role
AWS::IAM::User
AWS::Lambda::Function
AWS::S3::Bucket
AWS::SES::EmailIdentity
AWS::SNS::Topic
AWS::SQS::Queue
AWS::SSM::Parameter
AWS::SecretsManager::Secret
AWS::StepFunctions::StateMachine
AWS::CloudFront::Distribution
- [
AWS::Pipes::Pipe
](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pipes-pi
API Coverage
Section titled “API Coverage”Operation ▲ | Implemented | Image |
---|