Open LucasSymons opened 2 weeks ago
Hi @LucasSymons , thanks for reporting this. I am able to repro the issue given this code -
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 cdk synth
succeeded but error observed during cdk deploy
-
Since CfnAccountPolicy is L1 construct , this is a Cloudformation issue.
Internal ticket filed with Cloudformation support - P151743364
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