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-bucketList the resources using the following command:
awslocal cloudcontrol list-resources --type-name AWS::S3::BucketYou 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::RestApiAWS::CloudFormation::StackAWS::DynamoDB::TableAWS::EC2::VPCAWS::Events::EventBusAWS::IAM::GroupAWS::IAM::RoleAWS::IAM::UserAWS::Lambda::FunctionAWS::S3::BucketAWS::SES::EmailIdentityAWS::SNS::TopicAWS::SQS::QueueAWS::SSM::ParameterAWS::SecretsManager::SecretAWS::StepFunctions::StateMachineAWS::CloudFront::DistributionAWS::Pipes::Pipe
API Coverage
Section titled “API Coverage”| Operation ▲ | Implemented | Image | Tested on Kubernetes |
|---|