Skip to content

Instantly share code, notes, and snippets.

@sakamaki-kazuyoshi
sakamaki-kazuyoshi / sample-2018-01.template
Last active January 28, 2018 11:49
sample-2018-01_bk
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Parameters" : {
"KeyName" : {
"Description" : "input EC2 Keyname",
"Type" : "AWS::EC2::KeyPair::KeyName"
}
},
"Resources" : {
"VPC" : {
{
"Resources" : {
"TestVPC" : {
"Type" : "AWS::EC2::VPC",
"Properties" : {
"CidrBlock" : "10.0.0.0/16",
"EnableDnsSupport" : "true",
"EnableDnsHostnames" : "true",
"InstanceTenancy" : "default",
"Tags" : [ {"Key" : "Name", "Value" : "TestVPC"}]
AWSTemplateFormatVersion: '2010-09-09'
Description: "Create VPC,EC2 for Fluentd Test"
Parameters:
KeyPairName:
Type: "AWS::EC2::KeyPair::KeyName"
S3BucketName:
Type: String
SecurityGroupCidrIp:
Type: String
Default: 0.0.0.0/0
@sakamaki-kazuyoshi
sakamaki-kazuyoshi / 01_HPC-BaseNetwork.yml
Created July 16, 2018 11:37
HighPerformanceComputing
AWSTemplateFormatVersion: '2010-09-09'
Description: "Create BaseNetwork"
Parameters:
EnvType:
Description: Select Environment Type. Default is prd
Type: String
Default: prd
AllowedValues:
- prd
- dev
@sakamaki-kazuyoshi
sakamaki-kazuyoshi / amazon-cloudwatch-agent.json
Created September 23, 2018 11:41
CloudWatch Agent Sample
{
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/var/log/messages",
"log_group_name": "/var/log/messages"
}
]
AWSTemplateFormatVersion: '2010-09-09'
Description: "Create VPC-B"
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: "Network Configuration"
Parameters:
- VPCName
- VPCCider
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
projectName:
Type: String
eC2KeyPair:
Type: AWS::EC2::KeyPair::KeyName
Resources:
vpc:
Type: 'AWS::EC2::VPC'
Properties:
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
ProjectName:
Type: String
Default: 'test'
EC2KeyPair:
Type: AWS::EC2::KeyPair::KeyName
AccessSourceCIDR:
Description: CIDR accessing the Tableau Server
Type: String
@sakamaki-kazuyoshi
sakamaki-kazuyoshi / index.html
Last active September 3, 2019 22:53
CloudFront Access Logs Conversion
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<p>test</p>
@sakamaki-kazuyoshi
sakamaki-kazuyoshi / CodePipeline-S3toEC2.yml
Created May 30, 2020 09:15
CodePipeline to deploy from S3 to EC2.
AWSTemplateFormatVersion: '2010-09-09'
# ------------------------------------------------------------#
# Input Parameters
# ------------------------------------------------------------#
Parameters:
ProjectName:
Type: String
Default: 'test'
EC2KeyPair:
Type: AWS::EC2::KeyPair::KeyName