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
| FROM node:7 | |
| WORKDIR /app | |
| COPY package.json /app | |
| RUN npm install | |
| COPY . /app | |
| CMD node index.js | |
| EXPOSE 80 |
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
| $ docker search centos | |
| INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED | |
| docker.io docker.io/centos The official build of CentOS. 5267 [OK] | |
| docker.io docker.io/ansible/centos7-ansible Ansible on Centos7 121 [OK] | |
| docker.io docker.io/jdeathe/centos-ssh CentOS-6 6.10 x86_64 / CentOS-7 7.5.1804 x... 108 [OK] | |
| docker.io docker.io/consol/centos-xfce-vnc Centos container with "headless" VNC sessi... 83 [OK] | |
| docker.io docker.io/imagine10255/centos6-lnmp-php56 centos6-lnmp-php56 52 [OK] | |
| docker.io docker.io/centos/mysql-57-centos7 MySQL 5.7 SQL database server 49 | |
| docker.io docker.io/tutum/centos Simple CentOS docker image wit |
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
| $ docker search centos | |
| INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED | |
| docker.io docker.io/centos The official build of CentOS. 5267 [OK] | |
| docker.io docker.io/ansible/centos7-ansible Ansible on Centos7 121 [OK] | |
| docker.io docker.io/jdeathe/centos-ssh CentOS-6 6.10 x86_64 / CentOS-7 7.5.1804 x... 108 [OK] | |
| docker.io docker.io/consol/centos-xfce-vnc Centos container with "headless" VNC sessi... 83 [OK] | |
| docker.io docker.io/imagine10255/centos6-lnmp-php56 centos6-lnmp-php56 52 [OK] | |
| docker.io docker.io/centos/mysql-57-centos7 MySQL 5.7 SQL database server 49 | |
| docker.io docker.io/tutum/centos Simple CentOS docker image wit |
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
| $ docker run -d --name myapachewebsite -p 80:80 docker.io/httpd | |
| Unable to find image 'docker.io/httpd:latest' locally | |
| Trying to pull repository docker.io/library/httpd ... | |
| latest: Pulling from docker.io/library/httpd | |
| f7e2b70d04ae: Pull complete | |
| 84006542c688: Pull complete | |
| dae6fe3c5e81: Pull complete | |
| 33fc493aff90: Pull complete | |
| 9a4113020573: Pull complete | |
| Digest: sha256:20ead958907f15b638177071afea60faa61d2b6747c216027b8679b5fa58794b |
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
| $ docker pull hello-world | |
| Using default tag: latest | |
| Trying to pull repository docker.io/library/hello-world ... | |
| latest: Pulling from docker.io/library/hello-world | |
| 1b930d010525: Pull complete | |
| Digest: sha256:2557e3c07ed1e38f26e389462d03ed943586f744621577a99efb77324b0fe535 | |
| Status: Downloaded newer image for docker.io/hello-world:latest |
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
| { | |
| "cloudwatch.endpoint": "monitoring.us-west-2.amazonaws.com", | |
| "cloudwatch.emitMetrics": true, | |
| "firehose.endpoint": "firehose.us-west-2.amazonaws.com", | |
| "awsAccessKeyId": "", | |
| "awsSecretAccessKey": "", | |
| "flows": [ | |
| { | |
| "filePattern": "/var/log/httpd/access_log", | |
| "deliveryStream": "apachelogstream", |
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
| provider "aws" { | |
| region = "us-west-2" | |
| } | |
| resource "aws_iam_role" "my-config" { | |
| name = "config-example" | |
| assume_role_policy = <<POLICY | |
| { | |
| "Version": "2012-10-17", |
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
| resource "aws_vpc_endpoint" "ec2logs"{ | |
| vpc_id ="${var.vpc_id}" | |
| service_name = "com.amazonaws.us-west-2.logs" | |
| subnet_ids = ["${var.subnet_id}"] | |
| vpc_endpoint_type = "Interface" | |
| security_group_ids = [ | |
| "${var.security_group}" | |
| ] | |
| policy = <<POLICY |
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
| resource "aws_vpc_endpoint" "s3" { | |
| vpc_id = "${var.vpc_id}" | |
| service_name = "com.amazonaws.us-west-2.s3" | |
| route_table_ids = ["${var.route_table}"] | |
| policy = <<POLICY | |
| { | |
| "Statement": [ | |
| { | |
| "Action": "*", | |
| "Effect": "Allow", |
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": [ | |
| { | |
| "Sid": "VisualEditor0", | |
| "Effect": "Allow", | |
| "Action": "iam:PassRole", | |
| "Resource": "arn:aws:iam::XXXXXX:role/MaintainenceWindowRole" | |
| } | |
| ] |