func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sakuracloud.NewServer(ctx, "from-pulumi-with-go", &sakuracloud.ServerArgs{
This file contains 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
terraform { | |
required_providers { | |
sakuracloud = { | |
source = "sacloud/sakuracloud" | |
version = "2.12.0" | |
} | |
} | |
} | |
# IPアドレス設定用 パブリックスタートアップスクリプト |
This file contains 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
#!/bin/bash | |
usacloud server create --parameters parameter.json --name "name" password "password" |
This file contains 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
$ cdktf deploy | |
.gen/providers/sakuracloud/data-sakuracloud-vpc-router.ts:167:14 - error TS2416: Property 'index' in type 'DataSakuracloudVpcRouterPrivateNetworkInterface' is not assignable to the same property in base type 'ComplexComputedList'. | |
Type 'number' is not assignable to type 'string'. | |
167 public get index() { | |
~~~~~ | |
.gen/providers/sakuracloud/data-sakuracloud-vpc-router.ts:167:14 - error TS2611: 'index' is defined as a property in class 'ComplexComputedList', but is overridden here in 'DataSakuracloudVpcRouterPrivateNetworkInterface' as an accessor. |
$ kubectl get all --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
coredns-37390e68 pod/coredns-5cdbd55895-p7sgb 1/1 Running 0 12m
istio-095b8502 pod/istio-citadel-c49d8995c-tnm4x 1/1 Running 0 12m
istio-095b8502 pod/istio-gateway-868ff87668-bmspd 1/1 Running 0 12m
istio-095b8502 pod/istio-pilot-787795d8dd-4ttzf 2/2 Running 0 12m
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
This file contains 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
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher |
This file contains 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
/* | |
* こんなインターフェースを与えると | |
*/ | |
type Foobar interface { | |
List() []*Foo | |
Read(string) (*Foo, error) | |
} | |
/* | |
* こんなソースを生成して欲しい |
This file contains 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
usacloud dns create --name example.com |
This file contains 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
# さくらのクラウドAPIキーを環境変数に指定 | |
export SAKURACLOUD_ACCESS_TOKEN=<APIアクセストークン> | |
export SAKURACLOUD_ACCESS_TOKEN_SECRET=<APIアクセスシークレット> | |
# --dns=sakuracloudと指定してlego runを実行 | |
lego --email="[email protected]" --domains="example.com" --dns="sakuracloud" run |
This file contains 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
$ yum install -y ansible |
NewerOlder