serverless-step-functions icon indicating copy to clipboard operation
serverless-step-functions copied to clipboard

Getting Invalid variable reference syntax for variable AWS::Partition

Open duro opened this issue 4 years ago • 3 comments

This is a Bug Report

Description

For bug reports:

  • What went wrong?

On latest version of plugin we are now getting an error on package:

Invalid variable reference syntax for variable AWS::Partition. You can only reference env vars, options, & files. You can check our docs for more info.

Here is the full stack trace:

https://gist.github.com/duro/42d8aeb9d58698f87b4b95bcb837d91d

  • What did you expect should have happened?

Packaging should succeed

  • What was the config you used?

A config we have been using with success for months

  • What stacktrace or error message from your provider did you see?

See above

Similar or dependent issues:

  • #119

Additional Data

  • Serverless Framework Core Version you're using: 1.67.3
  • The Plugin Version you're using: 2.17.4
  • Operating System: MacOS and Linux
  • Stack Trace: https://gist.github.com/duro/42d8aeb9d58698f87b4b95bcb837d91d
  • Provider Error messages: Invalid variable reference syntax for variable AWS::Partition. You can only reference env vars, options, & files. You can check our docs for more info.

duro avatar Apr 16 '20 21:04 duro

@duro are you able to paste part of your serverless.yml here?

theburningmonk avatar Jun 18 '20 19:06 theburningmonk

Resources: DynamodbAlias: Type: AWS::KMS::Alias Properties: AliasName: !Join ['-', [alias/dynamoKey, !Ref Stage]] TargetKeyId: !Ref DynamodbKMSKey DynamodbKMSKey: Type: AWS::KMS::Key Properties: EnableKeyRotation: true Description: 'KMS CMK for DynamoDB' KeyPolicy: Version: '2012-10-17' Statement: - Sid: 'Enable IAM Root Permissions' Effect: Allow Principal: AWS: !Sub 'arn:${AWS::Partition}:iam::${AWS::AccountId}:root' Action: 'kms:' Resource: ''

Varunkamath95 avatar Feb 18 '21 08:02 Varunkamath95

any update got also an issue here thanks

juztinlazaro avatar Aug 08 '23 02:08 juztinlazaro