💾 Archived View for cfdocs.wetterberg.nu › resource-import.gemini captured on 2024-08-25 at 01:59:31. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

Bringing existing resources into CloudFormation management

Search

If you created an AWS resource outside of AWS CloudFormation management, you can bring this existing resource into AWS CloudFormation management using `resource import`. You can manage your resources using AWS CloudFormation regardless of where they were created without having to delete and re-create them as part of a stack.

For a list of AWS resources that support import operations, see Resources that support import operations.

Resources that support import operations

Resource import overview

During an import operation, you create a change set that imports your existing resources into a stack or creates a new stack from your existing resources. You provide the following during import.

DeletionPolicy

Resource import validation

During an import operation, AWS CloudFormation performs the following validations.

Resource and property reference

AWS CloudFormation does not check that the template configuration matches the actual configuration of resource properties.

Resource import status codes

This table describes the various status types used with `resource import`.

| Import operation status | Description |

| --- | --- |

| `IMPORT_IN_PROGRESS` | The import operation is currently in progress. |

| `IMPORT_COMPLETE` | The import operation successfully completed for all resources in the stack that support `resource import`. |

| `IMPORT_ROLLBACK_IN_PROGRESS` | Import will roll back to the previous template configuration. |

| `IMPORT_ROLLBACK_FAILED` | The import rollback operation failed for at least one resource in the stack. Results will be available for the resources CloudFormation successfully imported. |

| `IMPORT_ROLLBACK_COMPLETE` | Import successfully rolled back to the previous template configuration. |

Considerations during an import operation

drift detection

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#using-iam-template-conditions

AWS CloudFormation limits

Getting started with resource import

Creating a stack from existing resources

Importing existing resources into a stack

Moving resources between stacks

Nesting an existing stack

Reverting an import operation

Resources that support import operations