-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
chore: Fixed code in examples (dynamodb resource not found error) #742
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
chore: Fixed code in examples (dynamodb resource not found error) #742
Conversation
fix for dynamodb resource not found error in the example.
|
@tomahawk-pilot @antonbabenko This change is not valid... There is no data source named "vpc"... This change is causing the pre-commit failures in the pr I opened here, #737 |
|
(And yes, I am also plugging my PR to try to get review eyes on it 😁) |
I ran the tf and it works. But on second look it should be module.vpc |
|
I suppose it would be good if changes to the examples also ran all the precommit jobs, to catch these things earlier? |
|
all code in the module repos are checked by pre-commit - but this is a logic error. you could have just as easily put "foo" instead, the policy doesn't care what value is there - it just gets evaluated as allow or deny |
|
Ok... Please look at the PR I linked. Clearly many more tests were run on that PR, and two of them caught this failure. |
|
Hmm, actually this one should have been caught. It's syntactically incorrect |
|
This PR is included in version 3.11.5 🎉 |
|
So I see the issue here which has caused a flurry of spurious changes. The DynamoDB endpoint is a gateway endpoint and I guess that is not being found by the data source. We can swap this for one of the interface endpoints like SSM __ OR __ We change the condition to be |
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
fix for dynamodb resource not found error in the example.