-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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_logs: CfnAccountPolicy Returns bad request #31266
Labels
@aws-cdk/aws-logs
Related to Amazon CloudWatch Logs
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
Comments
LucasSymons
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Aug 30, 2024
khushail
added
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p2
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Aug 30, 2024
Hi @LucasSymons , thanks for reporting this. with open('/policy_doc.json', 'r') as file:
data = json.load(file)
cfn_account_policy = logs.CfnAccountPolicy(self, "MyCfnAccountPolicy",
policy_document=json.dumps(data),
policy_name="policyName",
policy_type="DATA_PROTECTION_POLICY",
scope="ALL",
) Although the Since CfnAccountPolicy is L1 construct , this is a Cloudformation issue. |
khushail
added
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
effort/medium
Medium work item – several days of effort
and removed
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
labels
Aug 30, 2024
Internal ticket filed with Cloudformation support - P151743364 |
This was referenced Sep 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-logs
Related to Amazon CloudWatch Logs
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
Describe the bug
When creating an AccountPolicy via cdk, I get back a request error.
"Invalid request provided: AWS::Logs::AccountPolicy" (RequestToken: 717f24d1-38cd-2b20-b7a1-1b04be946d9f, HandlerErrorCode: InvalidRequest)
Testing the stack with
cdk synth
no errors are returned.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Expected successful creation or an obvious error about what the problem is.
Current Behavior
Reproduction Steps
The Policy file in use is below
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.154.1 (build febce9d)
Framework Version
No response
Node.js Version
v20.10.0
OS
MacOS 14.6.1
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: