Skip to content

Instantly share code, notes, and snippets.

View cloudfront.tf
resource "aws_acm_certificate" "mizzy_org" {
provider = aws.us-east-1
domain_name = "mizzy.org"
validation_method = "EMAIL"
}
resource "aws_cloudfront_distribution" "mizzy_org" {
enabled = true
aliases = ["mizzy.org"]
View count_security_groups.rb
#!/usr/bin/env ruby
require 'json'
require 'aws-sdk-ec2'
ec2 = Aws::EC2::Client.new
res = ec2.describe_security_groups
security_groups = res.security_groups
View import.go
_, err := cloudwatch.NewLogGroup(ctx, "sock_shop", &cloudwatch.LogGroupArgs{
Name: pulumi.String("sock-shop"),
RetentionInDays: pulumi.Int(7),
}, pulumi.Import(pulumi.ID("sock-shop"))
View pulumi.go
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/cloudwatch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatch.NewLogGroup(ctx, "sock_shop", &cloudwatch.LogGroupArgs{
View cfn-stack-app-only.yaml.patch
--- ../../../markfink-splunk/sock-shop/ecs-fargate/cfn-stack-app-only.yaml 2021-09-17 19:50:03.000000000 +0900
+++ ./cfn-stack-app-only.yaml 2021-10-01 21:57:26.000000000 +0900
@@ -35,6 +35,7 @@
Description: >-
Name of an existing EC2 KeyPair to enable SSH access to the SQLImporter
EC2 instance (if none appear in drop-down menu, you need to create one)
+ Default: sock-shop-cloudformation
MinLength: '1'
ConstraintDescription: must be the name of an existing EC2 KeyPair.
Resources:
@mizzy
mizzy / achievement.md
Last active Dec 29, 2020
宮下 剛輔の研究・開発業績
View achievement.md

宮下 剛輔の研究・開発業績

論文・発表・受賞歴

受賞

  1. 宮下 剛輔, 第10回 日本OSS奨励賞, 昨今要求が高まっているシステム配備の自動化の実現に欠かすことができないサーバの状態を自動的にテストするツールServerspecを開発し、インフラ分野における業務の効率化に貢献, 2015年10月
  2. 宮下 剛輔, Black Duck Open Source Rookies of the Year 2013, 2013年に始まったオープンソースプロジェクトの中で優れたもの10種の中にServerspecが選出, 2014年1月
View generate_import.go
package main
import (
"fmt"
"log"
gohcl2 "github.com/hashicorp/hcl/v2/gohcl"
hcl2parse "github.com/hashicorp/hcl/v2/hclparse"
)
View rename_resources.go
package main
import (
"fmt"
"io/ioutil"
"log"
"regexp"
"strings"
gohcl2 "github.com/hashicorp/hcl/v2/gohcl"
View compare.go
func compare(t *testing.T, actual, expected interface{}) error {
if actual == nil {
return fmt.Errorf("Expected response should include %#v, but actually %#v", expected, actual)
}
a := actual.(map[string]interface{})
for k, v := range expected.(map[string]interface{}) {
switch p := v.(type) {
case int:
v = float64(p)