Skip to content

Conversation

@skuenzli
Copy link
Contributor

@skuenzli skuenzli commented Jan 17, 2025

Generate SQS Queue resource policies using the k9 Access capability model

@skuenzli skuenzli changed the title Feat: generate SQS resource policies feat: generate SQS resource policies Jan 17, 2025
Resolution error: statement.freeze is not a function
Splitting policy generation and application because:

* An SQS queue's resource policy is only modifiable via IQueue#addToResourcePolicy.
* The queue policy is not readable. Really!

So we generate our policy in a dedicated function so that we can test it.
@skuenzli skuenzli force-pushed the feat-generate-sqs-resource-policies branch from 0cebb11 to 1feca4e Compare January 18, 2025 03:42
…tements before adding to queue's resource policy.

If you provide statements as plain objects to addToResourcePolicy, methods like 'freeze' will be missing when synthesizing.
@skuenzli skuenzli force-pushed the feat-generate-sqs-resource-policies branch from 1feca4e to 981e458 Compare January 18, 2025 04:22
@skuenzli skuenzli force-pushed the feat-generate-sqs-resource-policies branch from 2a8bd05 to abd6ddc Compare January 20, 2025 18:22
@skuenzli skuenzli merged commit 041a040 into v2-main Jan 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants