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

(aws_cdk.aws_lakeformation.CfnTagAssociation.ResourceProperty): cannot define catalog #26261

Closed
plazmakeks opened this issue Jul 6, 2023 · 3 comments
Labels
@aws-cdk/aws-lakeformation Related to AWS Lake Formation bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@plazmakeks
Copy link

Describe the bug

I'd like to assign LF Tags to some resources and therefor create a

aws_lakeformation.CfnTagAssociation which takes as property resource an object of type aws_lakeformation.CfnTagAssociation.ResourceProperty. That class has a property named catalog, which by documentation is of type Any and is by default the aws account id. If i pass in my aws account id as a string i get the error message

RuntimeError: Error: Resolution error: Supplied properties not correct for "CfnTagAssociationProps" resource: supplied properties not correct for "ResourceProperty" catalog: "my_aws_account_id" should be an 'object'.

Expected Behavior

I never did that before, so no idea what is the expected behavior. I guess that object should just be created,.

Current Behavior

RuntimeError: Error: Resolution error: Supplied properties not correct for "CfnTagAssociationProps" resource: supplied properties not correct for "ResourceProperty" catalog: "my_aws_account_id" should be an 'object'.

Reproduction Steps

Setup that resource property

aws_lakeformation.CfnTagAssociation.ResourceProperty( catalog=env.account, database=aws_lakeformation.CfnTagAssociation.DatabaseResourceProperty( catalog_id=env.account, name="test_database", ))

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.86.0 (build 1130fab)

Framework Version

No response

Node.js Version

v18.16.1

OS

macos

Language

Python

Language Version

Python 3.10.12

Other information

No response

@plazmakeks plazmakeks added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jul 6, 2023
@github-actions github-actions bot added the @aws-cdk/aws-lakeformation Related to AWS Lake Formation label Jul 6, 2023
@peterwoodworth
Copy link
Contributor

It's not accepting a string because as the error message says, it wants an object. However, I have no idea what kind of object structure CloudFormation wants here, because the API itself doesn't specify how catalog should be used, it seems unfinished unless I'm missing something.

@peterwoodworth peterwoodworth added needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. and removed needs-triage This issue or PR still needs to be triaged. labels Jul 6, 2023
@peterwoodworth peterwoodworth changed the title (aws_cdk.aws_lakeformation.CfnTagAssociation.ResourceProperty): not accepting str as value for catalog (aws_cdk.aws_lakeformation.CfnTagAssociation.ResourceProperty): cannot define catalog Jul 6, 2023
@peterwoodworth
Copy link
Contributor

Try reaching out to the CloudFormation coverage roadmap, or AWS premium support if you have it to see if they have any insights. CDK is pulling this as properly as it can right now

@peterwoodworth peterwoodworth added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jul 6, 2023
@github-actions
Copy link

github-actions bot commented Jul 8, 2023

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lakeformation Related to AWS Lake Formation bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants