AWS CodeCommit AWS CodePipeline AWS CodeDeploy AWS Direct Dynamo DB Connect Amazon Cloud AWS Elastic Beanstalk GovCloud Amazon SWF WorkSpaces Amazon Route 53 ... –Capistrano, Fabric

Download AWS CodeCommit AWS CodePipeline AWS CodeDeploy  AWS Direct Dynamo DB Connect Amazon Cloud AWS Elastic Beanstalk GovCloud Amazon SWF WorkSpaces Amazon Route 53 ... –Capistrano, Fabric

Post on 20-Mar-2018

215 views

Category:

Documents

3 download

TRANSCRIPT

1 AWS CodeCommit AWS CodePipeline AWS CodeDeploy AWS Black Belt Tech Webinar 2015 2015/10/28 2 Amazon.com AWSKindle 11 3 AWS 2008 2009 2010 2011 Amazon EBS Amazon EC2 Amazon SNS AWS Identity & Access Management AWS Import & Export Amazon CloudWatch Amazon EMR Amazon RDS Amazon VPC Auto Scaling Elastic Load Balancing Amazon ElastiCache Amazon SES AWS CloudFormation AWS Direct Connect AWS Elastic Beanstalk GovCloud Amazon SWF Amazon Route 53 Amazon Redshift Amazon Glacier Amazon Dynamo DB Amazon CloudSearch AWS Storage Gateway Amazon CloudTrail Amazon CloudHSM Amazon WorkSpaces Amazon Kinesis Amazon Elastic Transcoder Amazon AppStream AWS OpsWorks AWS Data Pipeline 2013 2012 2014 Amazon Zocalo EBS Encripion Amazon Cloud Trail EC2 T2 Instances VPC Peering AWS Lambda AWS Directory Service AWS CodeDeploy Amazon EC2 Container Service Amazon Aurora 4 DevOps? DevOps = release test build plan monitor 5 AmazonDevOps 6 7 release test build 8 Service-Oriented Architecture (SOA) API Microservices 9 Two-pizza teams DevOps 10 ??? 11 12 13 >90% Pipelines 14 Microservice release test build release test build release test build release test build release test build release test build 15 = 5000/ Microservice 16 1) 2) deploy deploy deploy deploy development test staging production release: source > build > test > staging > production 17 0) AWS CodeCommit 1) AWS CodeDeploy 2) AWS CodePipeline 18 AWS CodeCommit/AWS CodePipeline/AWS CodeDeploy Monitor Provision Deploy Test Build Code Elastic Beanstalk OpsWorks Cloud Watch Cloud Formation Code Deploy Code Commit Code Pipeline 19 AWS CodeCommit 20 Git Git 21 22 AWS CodeCommit Availability Zone IAM git push AWS CodeCommit Git Amazon S3 Git Amazon DynamoDB AWS KMS SSH or HTTPS Git 23 AWS CodeCommit AWS GitGit 2GB Git AWS KMS IAM sshAWS CLI 24 Getting Started with https Step 1: AWS CodeCommitIAMAWS CLI Step 2: Git Step 3: Credential Helper Step 4: AWS CodeCommitClone Mac/Linux http://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.html Windows http://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.html http://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.html25 Step 3: Credential Helper Mac/Linux $git config --global credential.helper '!aws --profile default codecommit credential-helper $@' $git config --global credential.UseHttpPath true Credential Helper ~/.gitconfig [credential] helper = !aws --profile CodeCommitProfile codecommit credential-helper $@ UseHttpPath = true Mac OS XKeychain15 26 Step 3: Credential Helper Windows cd %PROGRAMFILES(X86)%\AWS Tools\CodeCommit git-credential-AWSS4.exe -p default Credential Helper %HOME%/.gitconfig [credential] helper = !'C:\\Users\\user-name\\AppData\\Roaming\\GitCredStore\\git-credential-AWSSV4.exe' --profile=CodeCommitProfile UseHttpPath = true 27 Getting Started with ssh Step 1: AWS CodeCommitIAM Step 2: Git Step 3: SSH Step 4: AWS CodeCommitClone Mac/Linux http://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.html Windows http://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.html http://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-unixes.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-https-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/setting-up-ssh-windows.html28 Step 3: SSH IAMSSH iam:UploadSSHPublicKey 29 Step 3: SSH 30 Step 3: SSH 31 Step 3: SSH Host git-codecommit.*.amazonaws.com User APKAEIBAERJR2******* IdentityFile ~/.ssh/codecommit_rsa ~/.ssh/config UserSSH Key ID git clone ssh://Your-SSH-Key-ID@git-codecommit.us-east-1.amazonaws.com/v1/repos/MyDemoRepo my-demo-repo WindowsIDSSH Key ID 32 33 34 MarkDown 35 AWS CodeCommit 1$1/ 5/ 50 GB/ 10,000 req/ 1CodeCommitIAM user/role 10 GB/1/ $0.06/GB/ Git 2,000req/1/ $0.001/req pullpush 36 AWS CodeCommit AWS S3 37 AWS CodePipeline 38 UAT 39 40 AWS CodePipeline Amazon Build 1) 2) Unit 1) 2) UI Source Beta Production 1) 2) Gamma 1) 2) 1 3) 2 41 AWS CodePipeline AWS Build/Test/Deploy AWS DeployAWS CodeDeployAWS Elastic Beanstalk BuildTestJenkins UI 42 A CodePipeline B 43 44 AWS CodePipeline 45 Custom Action CodePipeline S3 1. 2. 4. 3. Ack 5. 46 AWS CodePipeline 1$1/ 1 / 47 AWS CodePipeline UICLI CodePipeline 48 AWS CodeDeploy 49 Availability Zone Availability Zone v2 50 & DBLB ex. mvn, bundle ex. chef, puppet Apache, Nginx Ruby, JDK Config, etc. WEB LB DB Amazon Linux 51 Push FTP, rsync, git pull Capistrano, Fabric 52 AWS CodeDeploy 53 AWS CodeDeploy 1 Staging AWS CodeDeploy v1, v2, v3 Production Dev Amazon Application revisions Deployment groups 54 AWS CodeDeploy TagAuto Scaling Group PullEC2 Linux & Windows Staging Production Dev Deployment groups Agent Agent Agent Agent Agent Agent Agent AWS CodeDeploy v1, v2, v3 55 AWS CodeDeploy 1. Amazon S3 / GitHub 2. files: hooks: Deployment group Agent Agent Agent or Amazon S3 Application 1. Upload files hooks /dst 2. Deploy Download Polling 56 Deployment config v2 v1 v1 v1 v1 v1 v1 v1 v2 v2 v2 v2 v1 v1 v1 v1 v2 v2 v2 v2 v2 v2 v2 v2 OneAtATime (1) HalfAtATime () AllAtOnce () config 57 AppSpec File files hooks Event version: 0.0 os: linux files: - source: config destination: /etc/app - source: target/hello.war destination: /var/lib/tomcat6/webapps hooks: ApplicationStop: - location: deploy_hooks/stop-tomcat.sh ApplicationStart: - location: deploy_hooks/start-tomcat.sh 58 Application + AppSpec File appspec.yml () hook Amazon S3Object zip/tar/tgz GitHubRepository zip / appspec.yml config/ config.xml deploy_hooks/ start-tomcat.sh stop-tomcat.sh target/ hello.war or Amazon S3 : mavenbundleput/push 59 AWS CodeDeploy hook ELB API hook 60 AWS CodeDeployAuto Scaling Group(ASG) ASGLifecycle Hook Deployment GroupASG 61 AWS CodeDeploy 62 AWS CodeDeploy Amazon EC2 Amazon S3S3 $0.02// 63 AWS CodeDeploy CodeDeployAutoScaling AWS CodeDeploy 64 65 CodeCommit/CodePipeline/CodeDeploy CodeCommit 20157GA! N. Virginia CodePipeline 20157GA! N. Virginia / Oregon CodeDeploy 20158! 20151028 66 AWS CodeCommit AWS CodePipeline AWS CodeDeploy 67 AWSWebinarAWS http://www.slideshare.net/AmazonWebServicesJapan/awswebinaraws-54198407 AWS CodeCommit User Guide http://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/welcome.html AWS CodePipeline User Guide http://docs.aws.amazon.com/ja_jp/codepipeline/latest/userguide/welcome.html AWS CodePipeline API Reference http://docs.aws.amazon.com/ja_jp/codepipeline/latest/APIReference/Welcome.html AWS CodeDeploy User Guide http://docs.aws.amazon.com/ja_jp/codedeploy/latest/userguide/welcome.html AWS CodeDeploy Demo https://www.youtube.com/watch?v=jcR9iIWdU7E http://www.slideshare.net/AmazonWebServicesJapan/awswebinaraws-54198407http://www.slideshare.net/AmazonWebServicesJapan/awswebinaraws-54198407http://www.slideshare.net/AmazonWebServicesJapan/awswebinaraws-54198407http://www.slideshare.net/AmazonWebServicesJapan/awswebinaraws-54198407http://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/welcome.htmlhttp://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/welcome.htmlhttp://docs.aws.amazon.com/ja_jp/codepipeline/latest/userguide/welcome.htmlhttp://docs.aws.amazon.com/ja_jp/codepipeline/latest/userguide/welcome.htmlhttp://docs.aws.amazon.com/ja_jp/codepipeline/latest/APIReference/Welcome.htmlhttp://docs.aws.amazon.com/ja_jp/codepipeline/latest/APIReference/Welcome.htmlhttp://docs.aws.amazon.com/ja_jp/codedeploy/latest/userguide/welcome.htmlhttp://docs.aws.amazon.com/ja_jp/codedeploy/latest/userguide/welcome.htmlhttps://www.youtube.com/watch?v=jcR9iIWdU7Ehttps://www.youtube.com/watch?v=jcR9iIWdU7E68 AWS Black Belt Tech Webinar 2015 AWS &! 1028() 18:00 AWS CodeCommit / AWS CodePipeline / AWS CodeDeploy 114 () 1111()18:00 AWS OpsWorks 1118()18:00 AWS CloudFormation 1125()18:00 AWS Elastic Beanstalk http://aws.amazon.com/jp/about-aws/events/ http://aws.amazon.com/jp/about-aws/events/http://aws.amazon.com/jp/about-aws/events/http://aws.amazon.com/jp/about-aws/events/http://aws.amazon.com/jp/about-aws/events/69 Webinar AWS http://aws.amazon.com/jp/aws-jp-introduction/ http://aws.amazon.com/jp/aws-jp-introduction/http://aws.amazon.com/jp/aws-jp-introduction/http://aws.amazon.com/jp/aws-jp-introduction/http://aws.amazon.com/jp/aws-jp-introduction/http://aws.amazon.com/jp/aws-jp-introduction/http://aws.amazon.com/jp/aws-jp-introduction/70 Twitter/Facebook AWS @awscloud_jp http://on.fb.me/1vR8yWm 71 AWSWebinar AWS http://aws.amazon.com/jp/about-aws/events/ http://aws.amazon.com/jp/about-aws/events/http://aws.amazon.com/jp/about-aws/events/http://aws.amazon.com/jp/about-aws/events/http://aws.amazon.com/jp/about-aws/events/72

Recommended

View more >