A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/import-resources-automatically.html below:

Import AWS resources into a CloudFormation stack automatically

Import AWS resources into a CloudFormation stack automatically

You can now import named resources automatically when creating or updating CloudFormation stacks. A named resource is one with a custom name. For more information, see Name type in the CloudFormation Template Reference.

When you initiate auto-import, CloudFormation checks for existing resources that match your template and imports them during deployment. For nested stacks, create the change set from the root stack.

After the import is complete and before performing subsequent stack operations, we recommend running drift detection on imported resources. Drift detection ensures that the template configuration matches the actual configuration. For more information, see Detect drift on an entire CloudFormation stack.

To import a resource, they need to meet the following requirements:

Example auto-import

The following example uses a change set, CreateChangeSet to create a stack called my-stack based on a template file, template.yaml, and imports matching resources automatically.

aws cloudformation create-change-set \
  --stack-name my-stack \
  --change-set-name CreateChangeSet \
  --change-set-type CREATE \
  --template-body file://template.yaml \
  --import-existing-resources
Troubleshooting

If auto-import fails, do the following to troubleshoot:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4