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
| { | |
| "Id": "Policy1381219928568", | |
| "Statement": [ | |
| { | |
| "Sid": "Stmt1381219378364", | |
| "Action": [ | |
| "s3:GetObject" | |
| ], | |
| "Effect": "Allow", | |
| "Resource": "arn:aws:s3:::your s3 bucket name/*", |
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
| Vagrant.configure("2") do |config| | |
| config.vm.box = "dummy" | |
| config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.boxs" | |
| config.vm.provider :aws do |aws, override| | |
| aws.access_key_id = ENV['AWS_ACCESS_KEY_ID'] | |
| aws.secret_access_key = ENV['AWS_SECRET_KEY'] | |
| aws.keypair_name = ENV['AWS_KEYPAIR_NAME'] | |
| override.ssh.username = "ec2-user" | |
| override.ssh.private_key_path = ENV['AWS_PRIVATE_KEY_PATH'] |
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
| # yumのアップデート | |
| sudo yum -y update | |
| # 必要なモジュールのインストール | |
| sudo yum -y install gcc zlib-devel openssl-devel sqlite sqlite-devel rubygems ruby-devel git | |
| # chefのインストール | |
| curl -L http://www.opscode.com/chef/install.sh | sudo bash | |
| git clone git://github.com/opscode/chef-repo.git | |
| cd chef-repo | |
| # chefの初期化 |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": "s3:*", | |
| "Resource": [ | |
| "arn:aws:s3:::example-bucket", | |
| "arn:aws:s3:::example-bucket/*" | |
| ] |
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
| # Homebrewで"ec2"を検索 | |
| brew search ec2 | |
| # "ec2-api-tool"をインストール | |
| brew install ec2-api-tool | |
| # bash_profileに追記 | |
| vi ~/.bash_profile | |
| export JAVA_HOME="$(/usr/libexec/java_home)" |
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
| sudo yum install gcc make libstdc++-devel gcc-c++ fuse fuse-devel curl-devel libxml2-devel openssl-devel mailcap | |
| sudo wget https://s3fs.googlecode.com/files/s3fs-1.73.tar.gz | |
| mv s3fs-1.73.tar.gz /usr/local/src | |
| sudo mv s3fs-1.73.tar.gz /usr/local/src | |
| cd /usr/local/src | |
| sudo tar zxvf ./s3fs-1.73.tar.gz | |
| cd s3fs-1.73 | |
| sudo ./configure --prefix=/usr | |
| sudo make | |
| sudo make install |
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
| wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.9.3/fuse-2.9.3.tar.gz | |
| tar xvf fuse-2.9.3.tar.gz | |
| cd fuse-2.9.3 | |
| ./configure | |
| make | |
| make install | |
| echo /usr/local/lib >> /etc/ld.so.conf | |
| export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig | |
| ldconfig |
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 |
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
| vagrant plugin install vagrant-hostsupdater | |
| git clone [email protected]:miya0001/vagrant-chef-centos-wordpress.git vagrant-wp | |
| cd vagrant-wp | |
| vagrant up | |
| http://wordpress.local/ | |
| http://wordpress.local/wp-login.php | |
| admin/admin | |
| <generating-ssh-keys> |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Action": [ | |
| "s3:*" | |
| ], | |
| "Sid": "Stmt1381276881000", | |
| "Resource": [ | |
| "arn:aws:s3:::your s3 backet" |