Using Console
Using CLI
<policy-name>
is the name you want to give to your security policy, <unique-id>
is a unique identifier for the policy, <public-key>
is the actual public key that you want to use, and <comment>
is an optional comment that you can add.<distribution-id>
is the ID of your CloudFront distribution, <minimum-protocol-version>
is the minimum TLS version that you want to use, <ssl-support-method>
is the SSL support method that you want to use, <certificate-arn>
is the ARN of the SSL certificate that you want to use, <certificate-source>
is the source of the SSL certificate (either iam
or acm
), and <policy-name>
is the name of the security policy that you created in step 1.<distribution-id>
is the ID of your CloudFront distribution. This command will return the details of your distribution, including the security policy that it is currently using.That’s it! By following these steps, you can remediate the misconfiguration of using inappropriate security policies with appropriate version and ciphers for your AWS CloudFront distributions using AWS CLI.Using Python
<policy-name>
with the name you want to give to the new security policy and <policy-config-file>
with the path to the JSON file containing the policy configuration.<distribution-id>
with the ID of the CloudFront distribution you want to update and <distribution-config-file>
with the path to the JSON file containing the distribution configuration.