centos7で確認
$ sudo yum install -y epel-release
$ sudo yum install -y fail2ban
ディレクトリ構成
centos7で確認
$ sudo yum install -y epel-release
$ sudo yum install -y fail2ban
ディレクトリ構成
resource "aws_customer_gateway" "cgw-main" { | |
bgp_asn = 65000 | |
ip_address = var.cgw1 | |
type = "ipsec.1" | |
tags = { | |
Name = "cgw-main" | |
} | |
} |
"elasticfilesystem:DescribeMountTargetSecurityGroups", | |
"elasticfilesystem:DescribeMountTargets", | |
"sns:ListSubscriptions", | |
"s3:GetAccountPublicAccessBlock", | |
"ce:GetCostAndUsage", | |
"ce:GetCostForecast", | |
"ce:GetUsageForecast", | |
"eks:List*", | |
"detective:ListGraphs", | |
"ec2:SearchTransitGatewayRoutes", |
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Template to create AWS resources for onboarding an account with Sophos Optix | |
# ExternalId and CustomerId come from the Sophos Optix UI. | |
Parameters: | |
ExternalId: | |
Type: String |
トポロジを意識したservice転送
#!/bin/bash | |
parallel=3 | |
subcmds="$@" | |
vagrant status --machine-readable | \ | |
perl -wnlaF"," -e 'print $F[1] if $F[2] =~ /metadata/;' | \ | |
xargs -P${parallel} -I {} vagrant $subcmds {} | |
#!/bin/bash | |
# Specify the desired volume size in GiB as a command line argument. If not specified, default to 20 GiB. | |
SIZE=${1:-20} | |
# Get the ID of the environment host Amazon EC2 instance. | |
INSTANCEID=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
# Get the ID of the Amazon EBS volume associated with the instance. | |
VOLUMEID=$(aws ec2 describe-instances \ |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: bootcamp-service | |
spec: | |
type: LoadBalancer | |
ports: | |
- name: "http-port" | |
protocol: "TCP" | |
port: 8888 |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: bootcamp | |
name: bootcamp-deployment | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: |
1台目を構築s | |
Vagrantfile | |
```ruby | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" |