Last active
December 25, 2015 01:09
-
-
Save Twinuma/6892801 to your computer and use it in GitHub Desktop.
vagrant-chef-centos-wordpress & staticpress & s3cmd
This file contains hidden or 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
| ----- IAM s3 bucket upload user ----- | |
| # 1つ目 | |
| Effect: Allow | |
| AWS Service: Amazon S3 | |
| Actions: All Actions Selected | |
| Amazon Resource Name(ARN): arn:aws:s3:::your bucket | |
| # 2つ目 | |
| Effect: Allow | |
| AWS Service: Amazon S3 | |
| Actions: All Actions Selected | |
| Amazon Resource Name(ARN): arn:aws:s3:::your bucket/* | |
| # 3つ目 | |
| Effect: Allow | |
| AWS Service: Amazon S3 | |
| Actions: ListAllMyBuckets | |
| Amazon Resource Name(ARN): arn:aws:s3:::* | |
| ----- IAM s3 bucket upload user ----- | |
| Mac OSX : brew install s3cmd | |
| Linux : sudo yum --enablerepo epel install s3cmd | |
| s3cmd --configure | |
| bucket_location = ap-northeast-1 | |
| host_base = s3-ap-northeast-1.amazonaws.com | |
| host_bucket = %(bucket)s.s3-ap-northeast-1.amazonaws.com | |
| s3cmd put hoge.txt s3://www.staticpress.takkoweb.info/ | |
| s3cmd put -rr --acl-public --exclude=Makefile ./ s3://www.staticpress.takkoweb.info/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment