Open sak360 opened 3 years ago
Hey @wizage is there any update on this?
I'm trying to deploy a production environment and amplify-video
is preventing us from going live with the production env. The Cloudfront distrubtion name is not changing based on the env set via the amplify cli..
@wizage - any idea how we can get unblocked regarding this?
Following resources failed
Resource Name: rCloudFrontPublicKeydevelopxxxxxxxxx (AWS::CloudFront::PublicKey)
Event Type: create
Reason: Resource handler returned message: "Resource of type 'AWS::CloudFront::PublicKey' with identifier 'xxxxxx-develop-publickey-xxxx' already exists." (RequestToken: 5a5852ae-5f69-6202-d7e7-xxxxxxx, HandlerErrorCode: AlreadyExists)
Looking at my custom CF template, I have:
rCloudFrontPublicKeydevelopvmhnul59:
Type: AWS::CloudFront::PublicKey
Properties:
PublicKeyConfig:
CallerReference: xxxxx-develop-publickey-xxxxxx
Name: xxxxxxx-develop-publickey-xxxxxxx
EncodedKey: "-----BEGIN PUBLIC KEY-----xxxxxxxxxxxxxxxxxx-----END PUBLIC KEY-----\n"
rCloudFrontKeyGroup:
Type: AWS::CloudFront::KeyGroup
Properties:
KeyGroupConfig:
Name: !Sub "${pProjectName}-KeyGroup"
Items:
- !Ref rCloudFrontPublicKeydevelopvmhnul59
So the values are hard coded in. @wizage / @nathanagez - how can I update this to ensure multiple environments work?
Describe the bug Some values (related to the video plugin) in amplify's config jsons do not get updated when creating a new environment.
To Reproduce Steps to reproduce the behavior:
amplify init
(let's call thisprod
). Setup with CMS and CloudFront distribution enabled (this will show us the full extent of the observed bug)amplify env add
(let's call thisdev
)dev
environment (and any other environment after that):amplify/backend/auth/userPoolGroups/template.json
*admin-group-policy
's resource name (input bucket name does not update as expected)amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json
*admin-group-policy
's resource name)amplify/backend/api/vodaws/schema.graphql
videoObject
's token fieldamplify/backend/video/myvodstreams/props.json
contentDeliveryNetwork
>functionName
(same as the value invideoObject
's token field above)Expected behavior Expected the above values to update. Manually changing them fixed the issue, albeit just as a bandaid (since switching back and forth b/w environments causes the same issue)
Desktop (please complete the following information):