aws cloudformation90 CLI commands available for AWS CloudFormation.
| Command | API Operation | Sample |
|---|---|---|
activate-organizations-accessActivate trusted access with Organizations. With trusted access between StackSets and Organizations activated, the management account has permissions to create and manage StackSets for your organization. | ActivateOrganizationsAccess | |
activate-typeActivates a public third-party extension, such as a resource or module, to make it available for use in stack templates in your current account and Region. It can also create CloudFormation Hooks, which allow you to evaluate resource configurations before CloudFormation provisions them. Hooks integr | ActivateType | |
batch-describe-type-configurationsReturns configuration data for the specified CloudFormation extensions, from the CloudFormation registry in your current account and Region. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide. | BatchDescribeTypeConfigurations | |
cancel-update-stackCancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration. You can cancel only stacks that are in the UPDATE_IN_PROGRESS state. | CancelUpdateStack | |
continue-update-rollbackContinues rolling back a stack from UPDATE_ROLLBACK_FAILED to UPDATE_ROLLBACK_COMPLETE state. Depending on the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state) | ContinueUpdateRollback | |
create-change-setCreates a list of changes that will be applied to a stack so that you can review the changes before executing them. You can create a change set for a stack that doesn't exist or an existing stack. If you create a change set for a stack that doesn't exist, the change set shows all of the resources th | CreateChangeSet | |
create-generated-templateCreates a template from existing resources that are not already managed with CloudFormation. You can check the status of the template generation using the DescribeGeneratedTemplate API action. | CreateGeneratedTemplate | |
create-stackCreates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack through the DescribeStacks operation. For more information about creating a stack and monitoring stack progress, see Managing Amazon Web Services reso | CreateStack | |
create-stack-instancesCreates stack instances for the specified accounts, within the specified Amazon Web Services Regions. A stack instance refers to a stack in a specific account and Region. You must specify at least one value for either Accounts or DeploymentTargets, and you must specify at least one value for Regions | CreateStackInstances | |
create-stack-refactorCreates a refactor across multiple stacks, with the list of stacks and resources that are affected. | CreateStackRefactor | |
create-stack-setCreates a StackSet. | CreateStackSet | |
deactivate-organizations-accessDeactivates trusted access with Organizations. If trusted access is deactivated, the management account does not have permissions to create and manage service-managed StackSets for your organization. | DeactivateOrganizationsAccess | |
deactivate-typeDeactivates a public third-party extension, such as a resource or module, or a CloudFormation Hook when you no longer use it. Deactivating an extension deletes the configuration details that are associated with it. To temporarily disable a CloudFormation Hook instead, you can use SetTypeConfiguratio | DeactivateType | |
delete-change-setDeletes the specified change set. Deleting change sets ensures that no one executes the wrong change set. If the call successfully completes, CloudFormation successfully deleted the change set. If IncludeNestedStacks specifies True during the creation of the nested change set, then DeleteChangeSet w | DeleteChangeSet | |
delete-generated-templateDeleted a generated template. | DeleteGeneratedTemplate | |
delete-stackDeletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks don't show up in the DescribeStacks operation if the deletion has been completed successfully. For more information about deleting a stack, see Delete a stack from the CloudFormation console in the | DeleteStack | |
delete-stack-instancesDeletes stack instances for the specified accounts, in the specified Amazon Web Services Regions. The maximum number of organizational unit (OUs) supported by a DeleteStackInstances operation is 50. If you need more than 50, consider the following options: Batch processing: If you don't want to | DeleteStackInstances | |
delete-stack-setDeletes a StackSet. Before you can delete a StackSet, all its member stack instances must be deleted. For more information about how to complete this, see DeleteStackInstances. | DeleteStackSet | |
deregister-typeMarks an extension or extension version as DEPRECATED in the CloudFormation registry, removing it from active use. Deprecated extensions or extension versions cannot be used in CloudFormation operations. To deregister an entire extension, you must individually deregister all active versions of that | DeregisterType | |
describe-account-limitsRetrieves your account's CloudFormation limits, such as the maximum number of stacks that you can create in your account. For more information about account limits, see Understand CloudFormation quotas in the CloudFormation User Guide. | DescribeAccountLimits | |
describe-change-setReturns the inputs for the change set and a list of changes that CloudFormation will make if you execute the change set. For more information, see Update CloudFormation stacks using change sets in the CloudFormation User Guide. | DescribeChangeSet | |
describe-change-set-hooksReturns Hook-related information for the change set and a list of changes that CloudFormation makes when you run the change set. | DescribeChangeSetHooks | |
describe-eventsReturns CloudFormation events based on flexible query criteria. Groups events by operation ID, enabling you to focus on individual stack operations during deployment. An operation is any action performed on a stack, including stack lifecycle actions (Create, Update, Delete, Rollback), change set cre | DescribeEvents | |
describe-generated-templateDescribes a generated template. The output includes details about the progress of the creation of a generated template started by a CreateGeneratedTemplate API action or the update of a generated template started with an UpdateGeneratedTemplate API action. | DescribeGeneratedTemplate | |
describe-organizations-accessRetrieves information about the account's OrganizationAccess status. This API can be called either by the management account or the delegated administrator by using the CallAs parameter. This API can also be called without the CallAs parameter by the management account. | DescribeOrganizationsAccess | |
describe-publisherReturns information about a CloudFormation extension publisher. If you don't supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account. For more information about registering as a publisher, see: RegisterPublish | DescribePublisher | |
describe-resource-scanDescribes details of a resource scan. | DescribeResourceScan | |
describe-stack-drift-detection-statusReturns information about a stack drift detection operation. A stack drift detection operation detects whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. A stack is conside | DescribeStackDriftDetectionStatus | |
describe-stack-eventsReturns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide. You can list events for stacks that have failed to create or have been del | DescribeStackEvents | |
describe-stack-instanceReturns the stack instance that's associated with the specified StackSet, Amazon Web Services account, and Amazon Web Services Region. For a list of stack instances that are associated with a specific StackSet, use ListStackInstances. | DescribeStackInstance | |
describe-stack-refactorDescribes the stack refactor status. | DescribeStackRefactor | |
describe-stack-resourceReturns a description of the specified resource in the specified stack. For deleted stacks, DescribeStackResource returns resource information for up to 90 days after the stack has been deleted. | DescribeStackResource | |
describe-stack-resource-driftsReturns drift information for the resources that have been checked for drift in the specified stack. This includes actual and expected configuration values for resources where CloudFormation detects configuration drift. For a given stack, there will be one StackResourceDrift for each stack resource | DescribeStackResourceDrifts | |
describe-stack-resourcesReturns Amazon Web Services resource descriptions for running and deleted stacks. If StackName is specified, all the associated resources that are part of the stack are returned. If PhysicalResourceId is specified, the associated resources of the stack that the resource belongs to are returned. Onl | DescribeStackResources | |
describe-stack-setReturns the description of the specified StackSet. This API provides strongly consistent reads meaning it will always return the most up-to-date data. | DescribeStackSet | |
describe-stack-set-operationReturns the description of the specified StackSet operation. This API provides strongly consistent reads meaning it will always return the most up-to-date data. | DescribeStackSetOperation | |
describe-stacksReturns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide. If the stack doesn't | DescribeStacks | |
describe-typeReturns detailed information about an extension from the CloudFormation registry in your current account and Region. If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version. For more inf | DescribeType | |
describe-type-registrationReturns information about an extension's registration, including its current status and type and version identifiers. When you initiate a registration request using RegisterType, you can then use DescribeTypeRegistration to monitor the progress of that registration request. Once the registration req | DescribeTypeRegistration | |
detect-stack-driftDetects whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For each resource in the stack that supports drift detection, CloudFormation compares the actual configuration of | DetectStackDrift | |
detect-stack-resource-driftReturns information about whether a resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. This information includes actual and expected property values for resources in which CloudFo | DetectStackResourceDrift | |
detect-stack-set-driftDetect drift on a StackSet. When CloudFormation performs drift detection on a StackSet, it performs drift detection on the stack associated with each stack instance in the StackSet. For more information, see Performing drift detection on CloudFormation StackSets. DetectStackSetDrift returns the Ope | DetectStackSetDrift | |
estimate-template-costReturns the estimated monthly cost of a template. The return value is an Amazon Web Services Simple Monthly Calculator URL with a query string that describes the resources required to run the template. | EstimateTemplateCost | |
execute-change-setUpdates a stack using the input information that was provided when the specified change set was created. After the call successfully completes, CloudFormation starts updating the stack. Use the DescribeStacks action to view the status of the update. When you execute a change set, CloudFormation dele | ExecuteChangeSet | |
execute-stack-refactorExecutes the stack refactor operation. | ExecuteStackRefactor | |
get-generated-templateRetrieves a generated template. If the template is in an InProgress or Pending status then the template returned will be the template when the template was last in a Complete status. If the template has not yet been in a Complete status then an empty template will be returned. | GetGeneratedTemplate | |
get-hook-resultRetrieves detailed information and remediation guidance for a Hook invocation result. If the Hook uses a KMS key to encrypt annotations, callers of the GetHookResult operation must have kms:Decrypt permissions. For more information, see KMS key policy and permissions for encrypting CloudFormation Ho | GetHookResult | |
get-stack-policyReturns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned. | GetStackPolicy | |
get-templateReturns the template body for a specified stack. You can get the template for running or deleted stacks. For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted. If the template doesn't exist, a ValidationError is returned. | GetTemplate | |
get-template-summaryReturns information about a new or existing template. The GetTemplateSummary action is useful for viewing parameter information, such as default parameter values and parameter types, before you create or update a stack or StackSet. You can use the GetTemplateSummary action when you submit a template | GetTemplateSummary | |
import-stacks-to-stack-setImport existing stacks into a new StackSets. Use the stack import operation to import up to 10 stacks into a new StackSet in the same account as the source stack or in a different administrator account and Region, by specifying the stack ID of the stack you intend to import. | ImportStacksToStackSet | |
list-change-setsReturns the ID and status of each active change set for a stack. For example, CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or CREATE_PENDING state. | ListChangeSets | |
list-exportsLists all exported output values in the account and Region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the Fn::ImportValue function. For more information, see Get exported outputs from a deployed Cloud | ListExports | |
list-generated-templatesLists your generated templates in this Region. | ListGeneratedTemplates | |
list-hook-resultsReturns summaries of invoked Hooks. For more information, see View invocation summaries for CloudFormation Hooks in the CloudFormation Hooks User Guide. This operation supports the following parameter combinations: No parameters: Returns all Hook invocation summaries. TypeArn only: Returns summ | ListHookResults | |
list-importsLists all stacks that are importing an exported output value. To modify or remove an exported output value, first use this action to see which stacks are using it. To see the exported output values in your account, see ListExports. For more information about importing an exported output value, see t | ListImports | |
list-resource-scan-related-resourcesLists the related resources for a list of resources from a resource scan. The response indicates whether each returned resource is already managed by CloudFormation. | ListResourceScanRelatedResources | |
list-resource-scan-resourcesLists the resources from a resource scan. The results can be filtered by resource identifier, resource type prefix, tag key, and tag value. Only resources that match all specified filters are returned. The response indicates whether each returned resource is already managed by CloudFormation. | ListResourceScanResources | |
list-resource-scansList the resource scans from newest to oldest. By default it will return up to 10 resource scans. | ListResourceScans | |
list-stack-instance-resource-driftsReturns drift information for resources in a stack instance. ListStackInstanceResourceDrifts returns drift information for the most recent drift detection operation. If an operation is in progress, it may only return partial results. | ListStackInstanceResourceDrifts | |
list-stack-instancesReturns summary information about stack instances that are associated with the specified StackSet. You can filter for stack instances that are associated with a specific Amazon Web Services account name or Region, or that have a specific status. | ListStackInstances | |
list-stack-refactor-actionsLists the stack refactor actions that will be taken after calling the ExecuteStackRefactor action. | ListStackRefactorActions | |
list-stack-refactorsLists all account stack refactor operations and their statuses. | ListStackRefactors | |
list-stack-resourcesReturns descriptions of all resources of the specified stack. For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted. | ListStackResources | |
list-stack-set-auto-deployment-targetsReturns summary information about deployment targets for a StackSet. | ListStackSetAutoDeploymentTargets | |
list-stack-set-operation-resultsReturns summary information about the results of a StackSet operation. This API provides eventually consistent reads meaning it may take some time but will eventually return the most up-to-date data. | ListStackSetOperationResults | |
list-stack-set-operationsReturns summary information about operations performed on a StackSet. This API provides eventually consistent reads meaning it may take some time but will eventually return the most up-to-date data. | ListStackSetOperations | |
list-stack-setsReturns summary information about StackSets that are associated with the user. This API provides strongly consistent reads meaning it will always return the most up-to-date data. [Self-managed permissions] If you set the CallAs parameter to SELF while signed in to your Amazon Web Services accoun | ListStackSets | |
list-stacksReturns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including exist | ListStacks | |
list-type-registrationsReturns a list of registration tokens for the specified extension(s). | ListTypeRegistrations | |
list-type-versionsReturns summary information about the versions of an extension. | ListTypeVersions | |
list-typesReturns summary information about all extensions, including your private resource types, modules, and Hooks as well as all public extensions from Amazon Web Services and third-party publishers. | ListTypes | |
publish-typePublishes the specified extension to the CloudFormation registry as a public extension in this Region. Public extensions are available for use by all CloudFormation users. For more information about publishing extensions, see Publishing extensions to make them available for public use in the CloudFo | PublishType | |
record-handler-progressReports progress of a resource handler to CloudFormation. Reserved for use by the CloudFormation CLI. Don't use this API in your code. | RecordHandlerProgress | |
register-publisherRegisters your account as a publisher of public extensions in the CloudFormation registry. Public extensions are available for use by all CloudFormation users. This publisher ID applies to your account in all Amazon Web Services Regions. For information about requirements for registering as a public | RegisterPublisher | |
register-typeRegisters an extension with the CloudFormation service. Registering an extension makes it available for use in CloudFormation templates in your Amazon Web Services account, and includes: Validating the extension schema. Determining which handlers, if any, have been specified for the extension. | RegisterType | |
rollback-stackWhen specifying RollbackStack, you preserve the state of previously provisioned resources when an operation fails. You can check the status of the stack through the DescribeStacks operation. Rolls back the specified stack to the last known stable state from CREATE_FAILED or UPDATE_FAILED stack statu | RollbackStack | |
set-stack-policySets a stack policy for a specified stack. | SetStackPolicy | |
set-type-configurationSpecifies the configuration data for a CloudFormation extension, such as a resource or Hook, in the given account and Region. For more information, see Edit configuration data for extensions in your account in the CloudFormation User Guide. To view the current configuration data for an extension, re | SetTypeConfiguration | |
set-type-default-versionSpecify the default version of an extension. The default version of an extension will be used in CloudFormation operations. | SetTypeDefaultVersion | |
signal-resourceSends a signal to the specified resource with a success or failure status. You can use the SignalResource operation in conjunction with a creation policy or update policy. CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the tim | SignalResource | |
start-resource-scanStarts a scan of the resources in this account in this Region. You can the status of a scan using the ListResourceScans API action. | StartResourceScan | |
stop-stack-set-operationStops an in-progress operation on a StackSet and its associated stack instances. StackSets will cancel all the unstarted stack instance deployments and wait for those are in-progress to complete. | StopStackSetOperation | |
test-typeTests a registered extension to make sure it meets all necessary requirements for being published in the CloudFormation registry. For resource types, this includes passing all contracts tests defined for the type. For modules, this includes determining if the module's model meets all necessary r | TestType | |
update-generated-templateUpdates a generated template. This can be used to change the name, add and remove resources, refresh resources, and change the DeletionPolicy and UpdateReplacePolicy settings. You can check the status of the update to the generated template using the DescribeGeneratedTemplate API action. | UpdateGeneratedTemplate | |
update-stackUpdates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack through the DescribeStacks action. To get a copy of the template for an existing stack, you can use the GetTemplate action. For more information about u | UpdateStack | |
update-stack-instancesUpdates the parameter values for stack instances for the specified accounts, within the specified Amazon Web Services Regions. A stack instance refers to a stack in a specific account and Region. You can only update stack instances in Amazon Web Services Regions and accounts where they already exist | UpdateStackInstances | |
update-stack-setUpdates the StackSet and associated stack instances in the specified accounts and Amazon Web Services Regions. Even if the StackSet operation created by updating the StackSet fails (completely or partially, below or above a specified failure tolerance), the StackSet is updated with your changes. Sub | UpdateStackSet | |
update-termination-protectionUpdates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect a CloudFormation stack from being deleted in the CloudFormation User Guide. For nes | UpdateTerminationProtection | |
validate-templateValidates a specified template. CloudFormation first checks if the template is valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these checks fail, CloudFormation returns a template validation error. | ValidateTemplate |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterCloudFormation