Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active December 29, 2015 01:49
Show Gist options
  • Select an option

  • Save tkuchiki/7596353 to your computer and use it in GitHub Desktop.

Select an option

Save tkuchiki/7596353 to your computer and use it in GitHub Desktop.
ELB 証明書削除
AWSAccessKeyId=<Write your AWS access key ID>
AWSSecretKey=<Write your AWS secret key>
# --aws-credential-file version
## show list
$ iam-servercertlistbypath --aws-credential-file /path/to/.aws-credential-file
arn:aws:iam::123456789012:server-certificate/example.com.cert
arn:aws:iam::123456789012:server-certificate/example.net.cert
## delete
$ iam-servercertdel -s example.com.cert --aws-credential-file /path/to/.aws-credential-file
# environment variable version
$ export AWS_CREDENTIAL_FILE=/path/to/.aws-credential-file
# export AWS_DEFAULT_REGION=ap-northeast-1
## show list
$ iam-servercertlistbypath
arn:aws:iam::123456789012:server-certificate/example.net.cert
## delete
$ iam-servercertdel -s example.net.cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment