serverless-step-functions
serverless-step-functions copied to clipboard
Getting Invalid variable reference syntax for variable AWS::Partition
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 are you able to paste part of your serverless.yml
here?
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: ''
any update got also an issue here thanks