Skip to content

Commit

Permalink
chore: update message when Aurora is added to AppRunner (#2352)
Browse files Browse the repository at this point in the history
This PR updates the message that shows up when we detect an attempt to create an Aurora addon to an rd web service adding additional instructions

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
  • Loading branch information
Lou1415926 authored May 20, 2021
1 parent c8aa605 commit 111c578
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/pkg/cli/storage_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,12 @@ func (o *initStorageOpts) Ask() error {
if wkld.Type == manifest.RequestDrivenWebServiceType && o.storageType == rdsStorageType {
log.Warningf(`%s storage is launched in private subnets of your environment's VPC.
To reach the database from your %s please enable the HTTP Data API:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html
`, rdsStorageTypeOption, manifest.RequestDrivenWebServiceType)
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html.
You will also need to an IAM policy that allows your %s to make Data API calls.
You can simply create the policy in the Aurora addon template and create an output. The policy will be automatically attached to your %s:
https://aws.github.io/copilot-cli/docs/developing/additional-aws-resources/#what-does-an-addon-template-look-like
`, rdsStorageTypeOption, manifest.RequestDrivenWebServiceType, manifest.RequestDrivenWebServiceType, manifest.RequestDrivenWebServiceType)
}

// Storage name needs to be asked after workload because for Aurora the default storage name uses the workload name.
Expand Down

0 comments on commit 111c578

Please sign in to comment.