Skip to content

Migrations#14176

Merged
abhi7cr merged 17 commits intoaws-amplify:migrationsfrom
bzsurbhi:migrations
Apr 16, 2025
Merged

Migrations#14176
abhi7cr merged 17 commits intoaws-amplify:migrationsfrom
bzsurbhi:migrations

Conversation

@bzsurbhi
Copy link
Copy Markdown

@bzsurbhi bzsurbhi commented Apr 16, 2025

Description of changes

Refactored custom resources

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bzsurbhi bzsurbhi requested review from a team as code owners April 16, 2025 20:23
assert(to);
await executeStackRefactor(from, to);

let parsedcustomResourceMap: ResourceMapping[] | undefined = undefined;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to parsedCustomResourceMap.

type: 'string',
demandOption: true,
})
.option('customResourceMap', {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be resourceMap to make it more generic after our discussion with Josef ?

}
});

const fnGetAttRegExp = new RegExp(`{"${GET_ATT}":\\["(?<LogicalResourceId>\\w+)","(?<AttributeName>\\w+)"]}`, 'g');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can extract the below logic of replacing with physicalIds to a separate method.

@abhi7cr
Copy link
Copy Markdown
Contributor

abhi7cr commented Apr 16, 2025

There are few lint errors due to cloud pr failing. I will fix it along with the other comments in my next PR.

@abhi7cr abhi7cr merged commit aac338a into aws-amplify:migrations Apr 16, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants