Created
April 28, 2018 03:12
-
-
Save koheyamada/21b94de5bb1d29f8aecf3d9b83a1d0b5 to your computer and use it in GitHub Desktop.
aws-cli で ClassicLoadBalancer の TLS を変更する。 ref: https://qiita.com/kooohei/items/6b64cce748b8d7380da1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aws elb set-load-balancer-policies-of-listener --load-balancer-name <CLBの名前> --load-balancer-port 443 --policy-names <セキュリティポリシーの名前> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aws elb describe-load-balancer-policies --load-balancer-name <CLBの名前> | grep "PolicyName" | |
"PolicyName": "AWSConsole-SSLNegotiationPolicy-<CLBの名前>-1234567890123", | |
"PolicyName": "ELBSecurityPolicy-2016-08", | |
"PolicyName": "AWSConsole-SSLNegotiationPolicy-<CLBの名前>-1234567890123", | |
"PolicyName": "AWSConsole-SSLNegotiationPolicy-<CLBの名前>-1234567890123", | |
"PolicyName": "AWSConsole-SSLNegotiationPolicy-<CLBの名前>-1234567890123", | |
"PolicyName": "AWSConsole-SSLNegotiationPolicy-<CLBの名前>-1234567890123", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aws elb create-load-balancer-policy --load-balancer-name <CLBの名前> --policy-name TLS-1-2-2017-01 --policy-type-name SSLNegotiationPolicyType --policy-attributes AttributeName=Reference-Security-Policy,AttributeValue="${TLS}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aws elb create-load-balancer-policy --load-balancer-name <CLBの名前> --policy-name ELBSecurityPolicy-TLS-1-2-2017-01 --policy-type-name SSLNegotiationPolicyType --policy-attributes AttributeName=Reference-Security-Policy,AttributeValue="ELBSecurityPolicy-TLS-1-2-2017-01" | |
An error occurred (ValidationError) when calling the CreateLoadBalancerPolicy operation: Prefixes '[ELBSample-, ELBSecurityPolicy-]' are reserved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment