Amazondynamodbfullaccess

amazondynamodbfullaccess
====================================
Lab #1-1
Wordpress Deploy

Amazondynamodbfullaccess

https://aws.amazon.com/ko/getting-started/tutorials/launch-a-wordpress-website/

Marketplace wordpress bitnami
=> t2.micro => next => security group name: WordPress-SG
=> Tag: Key: Name / Value: cau_ WordPress
=> get system log 로 패스워드 획득 (dneaB9lC6yBO), 아이디는 user

amazondynamodbfullaccess best of amazondynamodbfullaccess

====================================
Lab #1-2
Example Web Deploy

IAM
-> Roles 클릭
-> Create role
-> EC2 -> EC2 -> Next
-> AmazonS3FullAccess + AmazonDynamoDBFullAccess
amazondynamodbfullaccess informational amazondynamodbfullaccess
-> Role name: cau-WebServerRole -> Create role

S3
-> 버킷 만들기
-> 이름: cau-webapp
-> 리전: 아까 선택한거
-> 생성

DynamoDB
-> 테이블 만들기
amazondynamodbfullaccess amazondynamodbfullaccess
-> Name: cau-AWS-Services
-> 기본 키: Category
-> 정렬 키 추가: Name
-> 생성

EC2
-> 인스턴스 시작
-> Amazon Linux
-> t2.micro -> 다음
-> 디폴트. IAM 롤만 변경,
amazondynamodbfullaccess best of amazondynamodbfullaccess
-> 고급 세부 정보의 사용자 데이터
#!/bin/bash
yum remove -y httpd php
yum install -y httpd24 php56
wget https://s3.ap-northeast-2.amazonaws.com/share-hosting/dyaclab1src.zip
unzip dyaclab1src.zip -d /tmp/
mv /tmp/dyaclab1src/*.php /var/www/html/
wget https://s3.ap-northeast-2.amazonaws.com/share-hosting/aws.zip
unzip aws -d /var/www/html

amazondynamodbfullaccess best of amazondynamodbfullaccess
AZ=`curl –silent http://169.254.169.254/latest/meta-data/placement/availability-zone/`
REGION=${AZ::-1}
DDBTABLE=dyac01-AWS-Services

BUCKET=dyac01-webapp
aws s3 cp /tmp/dyaclab1src/jquery/ s3://$BUCKET/jquery/ –recursive –acl public-read –region $REGION
aws s3 cp /tmp/dyaclab1src/images/ s3://$BUCKET/images/ –recursive –acl public-read –region $REGION
aws s3 ls s3://$BUCKET/ –region $REGION –recursive

sed -i “2s/%region%/$REGION/g” /var/www/html/*.php
amazondynamodbfullaccess check more amazondynamodbfullaccess
sed -i “3s/%bucket%/$BUCKET/g” /var/www/html/*.php
sed -i “6s/%ddbtable%/$DDBTABLE/g” /var/www/html/*.php
sed -i “1s/%ddbtable%/$DDBTABLE/g” /tmp/dyaclab1src/scripts/*.json

aws dynamodb batch-write-item –request-items file:///tmp/dyaclab1src/scripts/services1.json –region $REGION
aws dynamodb batch-write-item –request-items file:///tmp/dyaclab1src/scripts/services2.json –region $REGION
aws dynamodb batch-write-item –request-items file:///tmp/dyaclab1src/scripts/services3.json –region $REGION

chkconfig httpd on
service httpd start
amazondynamodbfullaccess best of amazondynamodbfullaccess

-> 다음 스토리지 추가
-> 다음 태그 추가 -> 태그 추가 -> 키: Name, 값: Dyac00 Web Server
-> 다음 보안 그룹
보안 그룹 이름: cau-web-server
설명: cau Web Server Security Group
-> 규칙 추가 -> 유형: http, 소스: 위치 무관
-> 검토 시작 -> 시작
-> 새 키 페어 생성 -> cau -> 키 페어 다운로드 -> 인스턴스 시작
-> 인스턴스 보기
amazondynamodbfullaccess best of amazondynamodbfullaccess

Putty 구성

인스턴스 접속

폴더 구경
cd /tml
cd /var/www/html

로그 구경
amazondynamodbfullaccess informational amazondynamodbfullaccess
sudo su
tail -f /var/log/cloud-init-output.log

완료 후 제거
인스턴스 제거
S3 버켓 제거
DDB 제거
IAM 롤 제거

amazondynamodbfullaccess best of amazondynamodbfullaccess
====================================
Lab #1-3
S3 Web Hosting

-> S3 버켓 생성
-> Web hosting 활성화
-> 버켓 폴러시 설정
{
“Version”: “2012-10-17”,
“Statement”: [
amazondynamodbfullaccess check more amazondynamodbfullaccess
{
“Sid”: “PublicReadGetObject”,
“Effect”: “Allow”,
“Principal”: “*”,
“Action”: “s3:GetObject”,
“Resource”: “arn:aws:s3:::example.com/*”
}
]
}

amazondynamodbfullaccess check more amazondynamodbfullaccess
-> S3 호스팅 샘플 파일 수정 및 업로드
-> 접속
amazondynamodbfullaccess

Pierre Bourne Sample Pack Free

Ato400006

[wprpi][wprpi][wprpi]