Skip to main content

migration_projects

Creates, updates, deletes or gets a migration_project resource or lists migration_projects in a region

Overview

Namemigration_projects
TypeResource
DescriptionResource schema for AWS::DMS::MigrationProject
Idaws.dms.migration_projects

Fields

NameDatatypeDescription
migration_project_namestringThe property describes a name to identify the migration project.
migration_project_identifierstringThe property describes an identifier for the migration project. It is used for describing/deleting/modifying can be name/arn
migration_project_arnstringThe property describes an ARN of the migration project.
migration_project_creation_timestringThe property describes a creating time of the migration project.
instance_profile_identifierstringThe property describes an instance profile identifier for the migration project. For create
instance_profile_namestringThe property describes an instance profile name for the migration project. For read
instance_profile_arnstringThe property describes an instance profile arn for the migration project. For read
transformation_rulesstringThe property describes transformation rules for the migration project.
descriptionstringThe optional description of the migration project.
schema_conversion_application_attributesobjectThe property describes schema conversion application attributes for the migration project.
source_data_provider_descriptorsarrayThe property describes source data provider descriptors for the migration project.
target_data_provider_descriptorsarrayThe property describes target data provider descriptors for the migration project.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all migration_projects in a region.

SELECT
region,
migration_project_name,
migration_project_identifier,
migration_project_arn,
migration_project_creation_time,
instance_profile_identifier,
instance_profile_name,
instance_profile_arn,
transformation_rules,
description,
schema_conversion_application_attributes,
source_data_provider_descriptors,
target_data_provider_descriptors,
tags
FROM aws.dms.migration_projects
WHERE region = 'us-east-1';

Gets all properties from an individual migration_project.

SELECT
region,
migration_project_name,
migration_project_identifier,
migration_project_arn,
migration_project_creation_time,
instance_profile_identifier,
instance_profile_name,
instance_profile_arn,
transformation_rules,
description,
schema_conversion_application_attributes,
source_data_provider_descriptors,
target_data_provider_descriptors,
tags
FROM aws.dms.migration_projects
WHERE region = 'us-east-1' AND data__Identifier = '<MigrationProjectArn>';

INSERT example

Use the following StackQL query and manifest file to create a new migration_project resource, using stack-deploy.

/*+ create */
INSERT INTO aws.dms.migration_projects (
MigrationProjectName,
MigrationProjectIdentifier,
MigrationProjectCreationTime,
InstanceProfileIdentifier,
InstanceProfileName,
InstanceProfileArn,
TransformationRules,
Description,
SchemaConversionApplicationAttributes,
SourceDataProviderDescriptors,
TargetDataProviderDescriptors,
Tags,
region
)
SELECT
'{{ MigrationProjectName }}',
'{{ MigrationProjectIdentifier }}',
'{{ MigrationProjectCreationTime }}',
'{{ InstanceProfileIdentifier }}',
'{{ InstanceProfileName }}',
'{{ InstanceProfileArn }}',
'{{ TransformationRules }}',
'{{ Description }}',
'{{ SchemaConversionApplicationAttributes }}',
'{{ SourceDataProviderDescriptors }}',
'{{ TargetDataProviderDescriptors }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.dms.migration_projects
WHERE data__Identifier = '<MigrationProjectArn>'
AND region = 'us-east-1';

Permissions

To operate on the migration_projects resource, the following permissions are required:

Create

dms:CreateMigrationProject,
dms:ListMigrationProjects,
dms:DescribeMigrationProjects,
dms:AddTagsToResource,
dms:ListTagsForResource,
iam:PassRole

Read

dms:DescribeMigrationProjects,
dms:ListMigrationProjects,
dms:ListTagsForResource

Update

dms:UpdateMigrationProject,
dms:ModifyMigrationProject,
dms:AddTagsToResource,
dms:RemoveTagsToResource,
dms:ListTagsForResource,
iam:PassRole

Delete

dms:DeleteMigrationProject

List

dms:ListMigrationProjects,
dms:DescribeMigrationProjects,
dms:ListTagsForResource