Skip to content

chore(cli): write tpl and params file for aurora and rdws#3022

Merged
mergify[bot] merged 8 commits intoaws:mainlinefrom
efekarakus:storage-init-rdws-write
Nov 12, 2021
Merged

chore(cli): write tpl and params file for aurora and rdws#3022
mergify[bot] merged 8 commits intoaws:mainlinefrom
efekarakus:storage-init-rdws-write

Conversation

@efekarakus
Copy link
Copy Markdown
Contributor

Manual testing results in the resource creations.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@efekarakus efekarakus requested a review from a team as a code owner November 11, 2021 19:54
@efekarakus efekarakus requested review from iamhopaul123 and removed request for a team November 11, 2021 19:54
Copy link
Copy Markdown
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

LGTM just a very nit comment

}

// HiglightCodeBlock wraps the string s with ``` characters, colors it to denote it's a multi-line code block, and returns it.
func HiglightCodeBlock(s string) string {
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.

🤣

Comment thread internal/pkg/cli/storage_init.go Outdated
return "", fmt.Errorf("read 'type' from manifest for %s: %w", o.workloadName, err)
}
o.workloadType = t
return o.workloadType, nil
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 don't need to return the type but just use o.workloadType right? or we abandon o.workloadType this cached variable completely

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Refactored! from now we'll call readWorkloadType first in Execute and only refer to the cached variable afterwards

@huanjani huanjani added the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Nov 12, 2021
Copy link
Copy Markdown
Contributor

@huanjani huanjani left a comment

Choose a reason for hiding this comment

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

Looks good to me. Added DNM label so you can address PH's Q.

@efekarakus efekarakus removed the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Nov 12, 2021
@mergify mergify Bot merged commit 479f892 into aws:mainline Nov 12, 2021
@efekarakus efekarakus deleted the storage-init-rdws-write branch November 12, 2021 18:45
mergify Bot pushed a commit that referenced this pull request Jun 3, 2024
AWS SDK for JavaScript v2 will enter maintenance mode on September 8, 2024 and reach end-of-support on September 8, 2025. For more information, check blog post at https://a.co/cUPnyil

This PR migrates v2 APIs in `internal/pkg/cli` to use v3.

These APIs were introduced in #3022, and were manually tested.
If they're run on Lambda, they're likely expected to fail error `[ERR_MODULE_NOT_FOUND]: Cannot find package 'aws-sdk'` after upgrading to Node.js 20

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
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.

4 participants