Aws-cdk: ${Token[TOKEN.18]} ... where to find the values of those tokens with Python during execution?

Created on 8 Apr 2020  路  3Comments  路  Source: aws/aws-cdk

Hello!

When I print the name of a newly created bucket in a stack:

print(bucket.bucket_name)

I see something like this:

${Token[TOKEN.18]}

Is it possible to access the values for those Tokens with Python during synthesizing/deploying?

And more specifically - if I create a Bucket bucket = s3.Bucket(...) without specifying its name - what would be the easiest way to find out about the generic name or the ARN?

Thanks

Raffael

@aws-cdaws-s3 guidance languagpython

Most helpful comment

I asked a similiar question. @NetaNir's response might be of help.

All 3 comments

As per what I could grasp, you want to see some outputs from your created resources.

You can accomplish that by creating CloudFormation outputs.

Details here.

I asked a similiar question. @NetaNir's response might be of help.

Closing this as it seems sufficient answers were provided. Please feel free to re-open if needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

v-do picture v-do  路  3Comments

NukaCody picture NukaCody  路  3Comments

ababra picture ababra  路  3Comments

kawamoto picture kawamoto  路  3Comments

peterdeme picture peterdeme  路  3Comments