-
Notifications
You must be signed in to change notification settings - Fork 16
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
!Ref AWS:AccountId returns 'RESOURCE NOT PUBLISHED' #4
Comments
Hi Matt, I don't believe that Thanks, |
I see, I was going off of the pseudo parameters docs but wasn't sure how it was supposed to be represented in the serverless.yml file.
If I were to use environment:
AccountId: "#{AWS::AccountId}" Then the variable resolves to the literal string |
Hey Jeremy, thanks for making this. I ran into the same problem as Matt. I ended up using the Serverless Framework Pro deployment profile feature to inject the account ID as a parameter like: I assigned that to an environment variable and constructed the RDS cluster ARN inside the function code like this: Now I can run I tried outputting the aurora cluster ARN in the resources section using |
@MattNguyen did you resolve your issue. i'm getting TypeError: bucketName.charAt is not a function when using "#{AWS::StackName}-my-bucket" |
Hi Jeremy,
Appreciate your work on this. I can see this being quite valuable but running into some roadblocks.
I'm attempting to construct an arn for an
AWS::RDS::DbCluster
which is passed to the environment of a lambda function.Originally I was using serverless-pseudo-parameters to return a string like so :
However it appears that serverless-pseudo-parameters + serverless-cloudside-plugin don't play well together.
So I broke out each parameter into a separate env var and constructed the arn in the lambda function:
However the
AccountId
returns<Resource Not Published>
.My questions are:
The text was updated successfully, but these errors were encountered: