Last active
December 18, 2015 13:09
-
-
Save marcy-terui/e1a08468c4e92f6fb81a to your computer and use it in GitHub Desktop.
Google Cloud Deployment ManagerはPreviewができる ref: http://qiita.com/marcy-terui/items/e18224db0db2d6e304fd
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
gcloud deployment-manager deployments <操作名> <デプロイメント名> --config <テンプレートファイルのパス> --preview |
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
resources: | |
- name: cloudsql-instance | |
type: sqladmin.v1beta4.instance | |
properties: | |
region: us-central | |
instanceType: CLOUD_SQL_INSTANCE | |
settings: | |
tier: D1 | |
activationPolicy: ON_DEMAND | |
- name: sample_db | |
type: sqladmin.v1beta4.database | |
properties: | |
instance: $(ref.cloudsql-instance.name) | |
charset: utf8mb4 | |
collation: utf8mb4_general_ci |
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
marcy@marcy-ubuntu:~$ gcloud deployment-manager deployments update sample-deploy --config cloud-sql.yml --preview | |
Waiting for update operation-1450436669687-5272a1a7744d8-79551062-f0eb9ff4...done. | |
Update operation operation-1450436669687-5272a1a7744d8-79551062-f0eb9ff4 completed successfully. | |
NAME TYPE STATE ERRORS | |
cloudsql-instance sqladmin.v1beta4.instance COMPLETED - | |
sample_db sqladmin.v1beta4.database COMPLETED - | |
sample_db_2 sqladmin.v1beta4.database IN_PREVIEW - | |
marcy@marcy-ubuntu:~$ gcloud deployment-manager deployments cancel-preview sample-deploy | |
Waiting for cancel-preview operation-1450436708378-5272a1cc5a590-bb26393f-95ec5cc2...done. | |
Cancel preview operation operation-1450436708378-5272a1cc5a590-bb26393f-95ec5cc2 completed successfully. | |
NAME TYPE STATE ERRORS | |
cloudsql-instance sqladmin.v1beta4.instance COMPLETED - | |
sample_db sqladmin.v1beta4.database COMPLETED - | |
sample_db_2 sqladmin.v1beta4.database COMPLETED - |
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
marcy@marcy-ubuntu:~$ gcloud deployment-manager deployments create sample-deploy --config cloud-sql.yml --preview | |
Waiting for create operation-1450429178867-527285bfa6d38-b87344ea-200e0e5d...done. | |
Create operation operation-1450429178867-527285bfa6d38-b87344ea-200e0e5d completed successfully. | |
NAME TYPE STATE ERRORS | |
cloudsql-instance sqladmin.v1beta4.instance IN_PREVIEW - | |
sample_db sqladmin.v1beta4.database IN_PREVIEW - |
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
marcy@marcy-ubuntu:~$ gcloud deployment-manager deployments update sample-deploy | |
Waiting for update operation-1450429201683-527285d56923b-123f8853-97528672...done. | |
Update operation operation-1450429201683-527285d56923b-123f8853-97528672 completed successfully. | |
NAME TYPE STATE ERRORS | |
cloudsql-instance sqladmin.v1beta4.instance COMPLETED - | |
sample_db sqladmin.v1beta4.database COMPLETED - |
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
resources: | |
- name: cloudsql-instance | |
type: sqladmin.v1beta4.instance | |
properties: | |
region: us-central | |
instanceType: CLOUD_SQL_INSTANCE | |
settings: | |
tier: D1 | |
activationPolicy: ON_DEMAND | |
- name: sample_db | |
type: sqladmin.v1beta4.database | |
properties: | |
instance: $(ref.cloudsql-instance.name) | |
charset: utf8mb4 | |
collation: utf8mb4_general_ci | |
- name: sample_db_2 | |
type: sqladmin.v1beta4.database | |
properties: | |
instance: $(ref.cloudsql-instance.name) | |
charset: utf8mb4 | |
collation: utf8mb4_general_ci |
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
marcy@marcy-ubuntu:~$ gcloud deployment-manager deployments update sample-deploy --config cloud-sql.yml --preview | |
Waiting for update operation-1450429831076-5272882da58a0-e242a24a-ccb9de67...done. | |
Update operation operation-1450429831076-5272882da58a0-e242a24a-ccb9de67 completed successfully. | |
NAME TYPE STATE ERRORS | |
cloudsql-instance sqladmin.v1beta4.instance COMPLETED - | |
sample_db sqladmin.v1beta4.database COMPLETED - | |
sample_db_2 sqladmin.v1beta4.database IN_PREVIEW - |
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
marcy@marcy-ubuntu:~$ gcloud deployment-manager deployments update sample-deploy | |
Waiting for update operation-1450429913772-5272887c82fe0-71ea9698-3902a139...done. | |
Update operation operation-1450429913772-5272887c82fe0-71ea9698-3902a139 completed successfully. | |
NAME TYPE STATE ERRORS | |
cloudsql-instance sqladmin.v1beta4.instance COMPLETED - | |
sample_db sqladmin.v1beta4.database COMPLETED - | |
sample_db_2 sqladmin.v1beta4.database COMPLETED - |
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
resources: | |
- name: cloudsql-instance | |
type: sqladmin.v1beta4.instance | |
properties: | |
region: us-central | |
instanceType: CLOUD_SQL_INSTANCE | |
settings: | |
tier: D1 | |
activationPolicy: ON_DEMAND | |
- name: sample_db | |
type: sqladmin.v1beta4.database | |
properties: | |
instance: $(ref.cloudsql-instance.name) | |
charset: utf8mb4 | |
collation: utf8mb4_general_ci | |
- name: sample_db_2 | |
type: sqladmin.v1beta4.database | |
properties: | |
instance: $(ref.cloudsql-instance.name) | |
charset: utf8 # <- here!! | |
collation: utf8_general_ci #<-here!! |
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
marcy@marcy-ubuntu:~$ gcloud deployment-manager deployments update sample-deploy --config cloud-sql.yml --preview | |
Waiting for update operation-1450430214580-5272899b62721-5a3da25c-8b02793a...done. | |
Update operation operation-1450430214580-5272899b62721-5a3da25c-8b02793a completed successfully. | |
NAME TYPE STATE ERRORS | |
cloudsql-instance sqladmin.v1beta4.instance COMPLETED - | |
sample_db sqladmin.v1beta4.database COMPLETED - | |
sample_db_2 sqladmin.v1beta4.database IN_PREVIEW - |
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
marcy@marcy-ubuntu:~$ gcloud deployment-manager deployments update sample-deploy | |
Waiting for update operation-1450434821949-52729ac550648-b01326ac-036f0ea0...done. | |
Update operation operation-1450434821949-52729ac550648-b01326ac-036f0ea0 completed successfully. | |
NAME TYPE STATE ERRORS | |
cloudsql-instance sqladmin.v1beta4.instance COMPLETED - | |
sample_db sqladmin.v1beta4.database COMPLETED - | |
sample_db_2 sqladmin.v1beta4.database COMPLETED - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment