Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use !ImportValue in custom resource YAML w/ v4.50.0 #7243

Closed
4 tasks done
kjones opened this issue May 3, 2021 · 6 comments · Fixed by #7245
Closed
4 tasks done

Can't use !ImportValue in custom resource YAML w/ v4.50.0 #7243

kjones opened this issue May 3, 2021 · 6 comments · Fixed by #7245
Labels
bug Something isn't working platform Issues tied to the general CLI platform referenced-in-release Issues referenced in a published release changelog

Comments

@kjones
Copy link

kjones commented May 3, 2021

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?

npm install -g @aws-amplify/cli

If applicable, what version of Node.js are you using?

v14.15.0

Amplify CLI Version

4.50.0

What operating system are you using?

Mac Big Sur

Amplify Categories

Not applicable

Amplify Commands

push

Describe the bug

I have a custom resource that uses !ImportValue to reference an SNS topic from another CloudFormation stack. With 4.50.0 I get the following error when running amplify push

An error occurred when pushing the resources to the cloud

unknown tag !<!ImportValue> (26:41)

 23 |  ... tMissingData: notBreaching
 24 |  ... istic: Sum
 25 |  ... tions:
 26 |  ... !ImportValue tools-AwsAlertsOk
-----------------------------------------^
 27 |  ... mActions:
 28 |  ... !ImportValue tools-AwsAlertsAlarm
An error occurred during the push operation: unknown tag !<!ImportValue> (26:41)

 23 |  ... tMissingData: notBreaching
 24 |  ... istic: Sum
 25 |  ... tions:
 26 |  ... !ImportValue tools-AwsAlertsOk
-----------------------------------------^
 27 |  ... mActions:
 28 |  ... !ImportValue tools-AwsAlertsAlarm

I had no problems with this using 4.48.0 this morning. Then upgraded to 4.50.0 and immediately got the error. The custom resource template is:

AWSTemplateFormatVersion: 2010-09-09
Description: CloudWatch Alarm Configuration
Parameters:
  env:
    Type: String
  functionIterableRequestName:
    Type: String
Resources:
  IterableRequestAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      Namespace: AWS/Lambda
      AlarmName: !Sub pace-IterableRequestAlarm-${env}
      MetricName: Errors
      Threshold: 1
      Period: 60
      EvaluationPeriods: 1
      AlarmDescription: This alarm signifies that we are having trouble processing Iterable API requests.
      Dimensions:
        - Name: FunctionName
          Value: !Ref functionIterableRequestName
      ComparisonOperator: GreaterThanOrEqualToThreshold
      TreatMissingData: notBreaching
      Statistic: Sum
      OKActions:
        - !ImportValue tools-AwsAlertsOk
      AlarmActions:
        - !ImportValue tools-AwsAlertsAlarm
      InsufficientDataActions:
        - !ImportValue tools-AwsAlertsInsufficientData

Expected behavior

Don't choke 🤮 on yaml !ImportValue.
Maybe also explain why the CLI even cares about the contents of my custom resource yaml.

Reproduction steps

See above

GraphQL schema(s)

N/A

Log output

2021-05-03T21:16:18.587Z|info : amplify version core  {"version":true,"yes":false}
2021-05-03T21:20:37.351Z|info : amplify push core  {"yes":true}
2021-05-03T21:20:45.498Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["amplify-temp"])
2021-05-03T21:20:45.499Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-05-03T21:20:45.499Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["amplify-temp"])
2021-05-03T21:20:45.510Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["amplify-temp"])
2021-05-03T21:20:45.510Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-05-03T21:20:45.510Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["amplify-temp"])
2021-05-03T21:20:45.515Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-05-03T21:20:45.521Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]ce-[***]j-[***]143-[***]ment"}])
2021-05-03T21:21:00.763Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]ce-[***]j-[***]143"}])
2021-05-03T21:21:00.776Z|info : amplify-provider-awscloudformation.aws-cfn.updateamplifyMetaFileWithStackOutputs.cfn.describeStackResources([{"StackName":"[***]ify-[***]ce-[***]j-[***]143"}])
2021-05-03T21:21:01.390Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]Connect-[***]UVAWKK/[***]25c0-[***]70-[***]eb-[***]bd-[***]8a65b"}])
2021-05-03T21:21:01.392Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]nueCat-[***]S9437U/[***]88f0-[***]41-[***]eb-[***]ee-[***]84415"}])
2021-05-03T21:21:01.393Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]Connect-[***]750T5/[***]2530-[***]fc-[***]eb-[***]2c-[***]a3521"}])
2021-05-03T21:21:01.394Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]ace-[***]5PWXQV/[***]ab00-[***]70-[***]eb-[***]b4-[***]eaed9"}])
2021-05-03T21:21:01.395Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]tore-[***]E46PV/[***]c5e0-[***]70-[***]eb-[***]f3-[***]3ee85"}])
2021-05-03T21:21:01.396Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]pple-[***]704P2O/[***]1f50-[***]e6-[***]eb-[***]1c-[***]0849f"}])
2021-05-03T21:21:01.397Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]pace-[***]LXDXJ1/[***]b950-[***]70-[***]eb-[***]c1-[***]c1ae9"}])
2021-05-03T21:21:01.398Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]EventStore-[***]C7USM/[***]5590-[***]78-[***]eb-[***]c4-[***]225b5"}])
2021-05-03T21:21:01.399Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]onChangeEvent-[***]9XW0Z/[***]2b30-[***]3a-[***]eb-[***]b2-[***]5bdc7"}])
2021-05-03T21:21:01.400Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]onaChangeEvent-[***]MLUPN/[***]3950-[***]54-[***]eb-[***]ee-[***]2d5f1"}])
2021-05-03T21:21:01.401Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]dbackRequest-[***]YHQ2I/[***]1100-[***]71-[***]eb-[***]db-[***]d803b"}])
2021-05-03T21:21:01.402Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]inConnect-[***]Z950G/[***]4fb0-[***]70-[***]eb-[***]45-[***]fabf5"}])
2021-05-03T21:21:01.403Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]bleRequest-[***]OYPYS8/[***]6ea0-[***]fc-[***]eb-[***]65-[***]de975"}])
2021-05-03T21:21:01.404Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]FileSamples-[***]B7ZMU/[***]ebb0-[***]3a-[***]eb-[***]83-[***]d20e2"}])
2021-05-03T21:21:01.405Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]venueCat-[***]0G9SC/[***]2d10-[***]41-[***]eb-[***]f1-[***]30a9d"}])
2021-05-03T21:21:01.405Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]uleRequest-[***]PUEEHA/[***]9bd0-[***]71-[***]eb-[***]00-[***]ba9df"}])
2021-05-03T21:21:01.406Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]gChangeEvent-[***]5JFVJ2/[***]18e0-[***]1c-[***]eb-[***]f4-[***]9d7c1"}])
2021-05-03T21:21:01.407Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]chUsageEvent-[***]BDHCXY/[***]e9d0-[***]df-[***]eb-[***]e9-[***]d258f"}])
2021-05-03T21:21:01.409Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]vaConnect-[***]JXZG1S/[***]8e10-[***]fc-[***]eb-[***]ce-[***]55b13"}])
2021-05-03T21:21:01.410Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]hangeEvent-[***]QTM8M5/[***]4390-[***]fc-[***]eb-[***]be-[***]8f74f"}])
2021-05-03T21:21:01.410Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]ChangeEvent-[***]PQI40/[***]9250-[***]02-[***]eb-[***]0f-[***]26083"}])
2021-05-03T21:21:01.411Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]ctionCache-[***]S3RCG/[***]7a80-[***]fc-[***]eb-[***]2f-[***]4d2e3"}])
2021-05-03T21:21:01.412Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]nceHistory-[***]4TNUJT/[***]1850-[***]6d-[***]eb-[***]a7-[***]9077b"}])
2021-05-03T21:21:03.738Z|error : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]nceHistory-[***]4TNUJT/[***]1850-[***]6d-[***]eb-[***]a7-[***]9077b"}])
Throttling: Rate exceeded
2021-05-03T21:21:03.756Z|error : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]bleRequest-[***]OYPYS8/[***]6ea0-[***]fc-[***]eb-[***]65-[***]de975"}])
Throttling: Rate exceeded
2021-05-03T21:21:03.775Z|error : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]ace-[***]5PWXQV/[***]ab00-[***]70-[***]eb-[***]b4-[***]eaed9"}])
Throttling: Rate exceeded
2021-05-03T21:21:03.891Z|error : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]chUsageEvent-[***]BDHCXY/[***]e9d0-[***]df-[***]eb-[***]e9-[***]d258f"}])
Throttling: Rate exceeded
2021-05-03T21:21:03.964Z|error : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]inConnect-[***]Z950G/[***]4fb0-[***]70-[***]eb-[***]45-[***]fabf5"}])
Throttling: Rate exceeded
2021-05-03T21:21:08.742Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]nceHistory-[***]4TNUJT/[***]1850-[***]6d-[***]eb-[***]a7-[***]9077b"}])
2021-05-03T21:21:08.759Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]bleRequest-[***]OYPYS8/[***]6ea0-[***]fc-[***]eb-[***]65-[***]de975"}])
2021-05-03T21:21:08.775Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]ace-[***]5PWXQV/[***]ab00-[***]70-[***]eb-[***]b4-[***]eaed9"}])
2021-05-03T21:21:08.891Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]chUsageEvent-[***]BDHCXY/[***]e9d0-[***]df-[***]eb-[***]e9-[***]d258f"}])
2021-05-03T21:21:08.964Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]92:stack/[***]ify-[***]ce-[***]j-[***]143-[***]inConnect-[***]Z950G/[***]4fb0-[***]70-[***]eb-[***]45-[***]fabf5"}])
2021-05-03T21:21:09.626Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]ce-[***]j-[***]143-[***]ment"}])
2021-05-03T21:21:14.464Z|error : amplify-provider-awscloudformation.push-resources.run([{"resourcesToBeCreated":[{"service":"[***]hAlarms","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"[***]equest","attributes":["Name"]}],"resourceName":"[***]hAlarms","category":"custom"}],"resourcesToBeUpdated":[],"resourcesToBe[***][***][***]Synced":[],"resourcesToBeDeleted":[],"tagsUpdated":false,"allResources":[{"service":"Cognito","providerPlugin":"[***]rmation","dependsOn":[],"customAuth":false,"output":{"UserPoolId":"[***]s-[***]st-[***]MkoTj","AppClientIDWeb":"[***]c81b40lum5u","AppClientID":"[***]enl2t25rodh","HostedUIDomain":"[***]32782-[***]2782-[***]j","OAuthMetadata":"{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"com.peaksware.[***]ce://socialsignin/\"],\"LogoutURLs\":[\"com.peaksware.[***]ce://socialsignout/\"]}","UserPoolName":"[***]ce"},"lastPushTimeStamp":"2021-05-03T21:21:09.580Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-[***]ce-kj-153143-deployment/amplify-cfn-templates/auth/[***]ce-cloudformation-template.yml","logicalId":"[***][***]ce"},"resourceName":"[***]ce","category":"auth"},{"service":"Cognito","providerPlugin":"[***]rmation","dependsOn":[{"category":"auth","resourceName":"[***]ce","attributes":["UserPoolId"]}],"output":{},"lastPushTimeStamp":"2021-05-03T21:21:09.582Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/auth/auth-[***]le-template.yaml","logicalId":"[***]pple"},"resourceName":"apple","category":"auth"},{"service":"AppSync","providerPlugin":"[***]rmation","output":{"authConfig":{"defaultAuthentication":{"authenticationType":"AMAZON_COGNITO_USER_POOLS","userPoolConfig":{"userPoolId":"[***][***]ce"}},"additionalAuthenticationProviders":[{"authenticationType":"AWS_IAM"}]},"GraphQLAPIIdOutput":"[***]f7judvvpyda","GraphQLAPIEndpointOutput":"https://oegl47zfj5gnrkjjx3xcqwtsra.appsync-api.us-east-1.amazonaws.com/graphql"},"lastPushTimeStamp":"2021-05-03T21:21:09.584Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/api/cloudformation-template.json","logicalId":"[***]ace"},"resourceName":"[***]ce","category":"api"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"[***]onnect","attributes":["Name","Arn"]}],"output":{"ApiName":"[***]onnect","RootUrl":"https://[***]0nid.execute-api.us-east-1.amazonaws.com/kj","ApiId":"lcvfs70nid"},"lastPushTimeStamp":"2021-05-03T21:21:09.586Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/api/[***]onnect-cloudformation-template.json","logicalId":"[***]Connect"},"resourceName":"[***]onnect","category":"api"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"[***]eCat","attributes":["Name","Arn"]}],"output":{"ApiName":"[***]eCat","RootUrl":"https://[***]qrlb.execute-api.us-east-1.amazonaws.com/kj","ApiId":"1c9bweqrlb"},"lastPushTimeStamp":"2021-05-03T21:21:09.588Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/api/[***]eCat-cloudformation-template.json","logicalId":"[***]nueCat"},"resourceName":"[***]eCat","category":"api"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"[***]onnect","attributes":["Name","Arn"]}],"output":{"ApiName":"[***]onnect","RootUrl":"https://[***]xyhh.execute-api.us-east-1.amazonaws.com/kj","ApiId":"[***]ke5m0xyhh"},"lastPushTimeStamp":"2021-05-03T21:21:09.589Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/api/[***]onnect-cloudformation-template.json","logicalId":"[***]Connect"},"resourceName":"[***]onnect","category":"api"},{"service":"AssetStore","providerPlugin":"[***]rmation","dependsOn":[],"output":{"BucketName":"[***]ce-[***]ets-[***]gpeaks-[***]om-[***]j","DistributionId":"[***]59FIM8","DistributionDomainName":"[***]oudfront.net"},"lastPushTimeStamp":"2021-05-03T21:21:09.591Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/asset/asset-[***]re-template.yaml","logicalId":"[***]tore"},"resourceName":"store","category":"asset"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]ce","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput"]},{"category":"storage","resourceName":"[***]eHistory","attributes":["Name","Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:[***]ce-[***]equest-[***]j","Name":"[***]ce-[***]equest-[***]j","LambdaExecutionRole":"[***]ceLambdaRole3aeb5546-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.593Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/function/[***]equest-cloudformation-template.json","logicalId":"[***]uleRequest"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]ce-[***]j-[***]143-[***]ment","s3Key":"[***]ify-[***]lds/[***]equest-[***]6e6a6b72-[***].zip"},"resourceName":"[***]equest","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]ce","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:[***]ce-[***]kRequest-[***]j","Name":"[***]ce-[***]kRequest-[***]j","LambdaExecutionRole":"paceLambdaRoleb0925631-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.594Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/function/[***]kRequest-cloudformation-template.json","logicalId":"[***]dbackRequest"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]ce-[***]j-[***]143-[***]ment","s3Key":"[***]ify-[***]lds/[***]kRequest-[***]37447378-[***].zip"},"resourceName":"[***]kRequest","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput"]},{"category":"storage","resourceName":"[***]ionCache","attributes":["Name","Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]onnect-[***]j","Name":"[***]ce-[***]onnect-[***]j","LambdaExecutionRole":"paceLambdaRole44713824-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.596Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/function/GarminConnect-cloudformation-template.json","logicalId":"[***]inConnect"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]ce-[***]j-[***]143-[***]ment","s3Key":"[***]ify-[***]lds/[***]onnect-[***]436d6d63-[***].zip"},"resourceName":"GarminConnect","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"function","resourceName":"[***]ageEvent","attributes":["Name"]},{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]hangeEvent-[***]j","Name":"[***]ce-[***]hangeEvent-[***]j","LambdaExecutionRole":"paceLambdaRole3e3e495a-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.598Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]ce-[***]j-[***]143-[***]ment/amplify-cfn-templates/function/[***]hangeEvent-cloudformation-template.json","logicalId":"[***]onaChangeEvent"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]hangeEvent-[***]63565967-[***].zip"},"resourceName":"AthletePersonaChangeEvent","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]ageEvent-[***]j","Name":"[***]ce-[***]ageEvent-[***]j","LambdaExecutionRole":"paceLambdaRoleaa3b778d-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.601Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/[***]ageEvent-cloudformation-template.json","logicalId":"[***]chUsageEvent"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]ageEvent-[***]2f345754-[***].zip"},"resourceName":"StoreCoachUsageEvent","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]hangeEvent-[***]j","Name":"[***]ce-[***]hangeEvent-[***]j","LambdaExecutionRole":"paceLambdaRole8cf78945-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.603Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/[***]hangeEvent-cloudformation-template.json","logicalId":"[***]onChangeEvent"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]hangeEvent-[***]39757a50-[***].zip"},"resourceName":"AppConnectionChangeEvent","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput"]}],"output":{},"lastPushTimeStamp":"2021-05-03T21:21:09.604Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/function-[***]eSamples-template.json","logicalId":"[***]FileSamples"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]eSamples-[***]6142306b-[***].zip"},"resourceName":"ProcessFileSamples","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]eCat-[***]j","Name":"[***]ce-[***]eCat-[***]j","LambdaExecutionRole":"paceLambdaRoleb802b8e1-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.606Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/RevenueCat-cloudformation-template.json","logicalId":"[***]venueCat"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]eCat-[***]6a324d62-[***].zip"},"resourceName":"RevenueCat","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"function","resourceName":"CoachFeedbackRequest","attributes":["Name"]},{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]ngeEvent-[***]j","Name":"[***]ce-[***]ngeEvent-[***]j","LambdaExecutionRole":"paceLambdaRolea6a48e75-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.608Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/[***]ngeEvent-cloudformation-template.json","logicalId":"[***]ChangeEvent"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]ngeEvent-[***]677a466e-[***].zip"},"resourceName":"WorkoutChangeEvent","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput"]},{"category":"function","resourceName":"ScheduleRequest","attributes":["Name"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]angeEvent-[***]j","Name":"[***]ce-[***]angeEvent-[***]j","LambdaExecutionRole":"paceLambdaRole96dfcc5c-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.609Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/[***]angeEvent-cloudformation-template.json","logicalId":"[***]gChangeEvent"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]angeEvent-[***]73756845-[***].zip"},"resourceName":"SchedulingChangeEvent","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput"]},{"category":"storage","resourceName":"[***]ionCache","attributes":["Name","Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]onnect-[***]j","Name":"[***]ce-[***]onnect-[***]j","LambdaExecutionRole":"paceLambdaRolea86c38a3-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.611Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/StravaConnect-cloudformation-template.json","logicalId":"[***]vaConnect"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]onnect-[***]69613555-[***].zip"},"resourceName":"StravaConnect","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]equest-[***]j","Name":"[***]ce-[***]equest-[***]j","LambdaExecutionRole":"paceLambdaRole6f386ea1-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.613Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/[***]equest-cloudformation-template.json","logicalId":"[***]bleRequest"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]equest-[***]74573170-[***].zip"},"resourceName":"[***]equest","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"pace","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput"]},{"category":"function","resourceName":"[***]equest","attributes":["Name"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]unction:pace-[***]eEvent-[***]j","Name":"[***]ce-[***]eEvent-[***]j","LambdaExecutionRole":"paceLambdaRoled60f104c-kj"},"lastPushTimeStamp":"2021-05-03T21:21:09.614Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/function/[***]eEvent-cloudformation-template.json","logicalId":"[***]hangeEvent"},"s3Bucket":{"deploymentBucketName":"amplify-pace-kj-153143-deployment","s3Key":"[***]ify-[***]lds/[***]eEvent-[***]4e36626d-[***].zip"},"resourceName":"UserChangeEvent","category":"function"},{"service":"DynamoDB","providerPlugin":"[***]rmation","output":{"PartitionKeyName":"[***]k","Region":"us-east-1","Arn":"[***]amodb:us-[***]st-[***]92:table/[***]ce-[***]ionCache-[***]j","StreamArn":"[***]amodb:us-[***]st-[***]92:table/[***]ce-[***]ionCache-[***]j/[***]eam/[***]21-[***]4-[***]30.052","PartitionKeyType":"S","Name":"[***]ce-[***]ionCache-[***]j"},"lastPushTimeStamp":"2021-05-03T21:21:09.616Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/storage/[***]ionCache-cloudformation-template.json","logicalId":"[***]ctionCache"},"resourceName":"AppConnectionCache","category":"storage"},{"service":"DynamoDB","providerPlugin":"[***]rmation","output":{"PartitionKeyName":"[***]k","SortKeyName":"sk","SortKeyType":"S","Region":"us-east-1","Arn":"[***]amodb:us-[***]st-[***]92:table/[***]ce-[***]eHistory-[***]j","StreamArn":"[***]amodb:us-[***]st-[***]92:table/[***]ce-[***]eHistory-[***]j/[***]eam/[***]21-[***]3-[***]32.838","PartitionKeyType":"S","Name":"[***]ce-[***]eHistory-[***]j"},"lastPushTimeStamp":"2021-05-03T21:21:09.618Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/storage/[***]eHistory-cloudformation-template.json","logicalId":"[***]nceHistory"},"resourceName":"PerformanceHistory","category":"storage"},{"service":"QLDB","providerPlugin":"[***]rmation","output":{"RoyaltiesLedgerName":"[***]ce-[***]ties"},"lastPushTimeStamp":"2021-05-03T21:21:09.619Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-pace-kj-153143-deployment/amplify-cfn-templates/custom/[***]entStore-cloudformation-template.json","logicalId":"[***]EventStore"},"resourceName":"RoyaltiesEventStore","category":"custom"},{"service":"CloudWatchAlarms","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"IterableRequest","attributes":["Name"]}],"resourceName":"CloudWatchAlarms","category":"custom"}]}])
YAMLException: unknown tag !<!ImportValue> (26:41)

 23 |  ... tMissingData: notBreaching
 24 |  ... istic: Sum
 25 |  ... tions:
 26 |  ... !ImportValue tools-AwsAlertsOk
-----------------------------------------^
 27 |  ... mActions:
 28 |  ... !ImportValue tools-AwsAlertsAlarm

Additional information

No response

@attilah attilah added bug Something isn't working platform Issues tied to the general CLI platform labels May 3, 2021
@attilah
Copy link
Contributor

attilah commented May 3, 2021

@kjones thanks for reporting the issue, just to give some background, the CLI runs through all the templates it discovers to look for S3 deployment keys as we need to pass those in as parameters in case the template references some automatically uploaded resources.

I marked it as a bug as roundtripping YAML -> Object -> YAML should not have side effects.

@edwardfoyle
Copy link
Contributor

@kjones as a temporary workaround, the longform of the intrinsic function (Fn::ImportValue) should work

@attilah attilah added the pending-release Code has been merged but pending release label May 4, 2021
@cjihrig
Copy link
Contributor

cjihrig commented May 4, 2021

This should be resolved in v4.50.2, so I'll close this out.

@cjihrig cjihrig closed this as completed May 4, 2021
@cjihrig
Copy link
Contributor

cjihrig commented May 4, 2021

Sorry, #7245 has not been merged yet. Reopening and removing the pending-release label.

@cjihrig cjihrig reopened this May 4, 2021
@cjihrig cjihrig removed the pending-release Code has been merged but pending release label May 4, 2021
attilah pushed a commit that referenced this issue May 4, 2021
* fix: #7243 yaml parsing should support all cfn functions
@github-actions
Copy link

👋 Hi, this issue was referenced in the v4.51.0 release!

Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v4.51.0.

@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label May 14, 2021
@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
cjihrig pushed a commit to ctjlewis/amplify-cli that referenced this issue Jul 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working platform Issues tied to the general CLI platform referenced-in-release Issues referenced in a published release changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants