SIOS-Technology-Inc / dacrane

"Dacrane" is a Delivery as Code (DaC) tool for deploying cloud infrastructures and applications anywhere.
Apache License 2.0
61 stars 1 forks source link

Implement infrastructure resource deployment functions #2

Closed t-ikeda-sti closed 1 year ago

t-ikeda-sti commented 1 year ago

User Story

Developers deploy infrastructures.

Acceptance Criteria

Design & Specification

kind: resource
name: resource-group
provider: azure-resource-group
parameters:
  name: sample-rg
  location: "Japan East"
credentials:
  subscription_id: ${ env.AZ_SUBSCRIPTION_ID }
  tenant_id: ${ env.AZ_TENANT_ID }
  client_id: ${ env.AZ_CLIENT_ID }
  client_secret: ${ env.AZ_CLIENT_SECRET }
kind: resource
name: sample-app-service-plan
provider: azure-app-service-plan
parameters:
  name: sample-asp
  resourceGroupName: "sample-rg"
  location: "Japan East"
  kind: "Linux"
  sku:
    tier: PremiumContainer
    size: PC2
credentials:
  subscription_id: ${ env.AZ_SUBSCRIPTION_ID }
  tenant_id: ${ env.AZ_TENANT_ID }
  client_id: ${ env.AZ_CLIENT_ID }
  client_secret: ${ env.AZ_CLIENT_SECRET }
kind: resource
name: sample-app-services
provider: azure-app-services
parameters:
  name: sample-
  resourceGroupName: "sample-rg"
  location: "Japan East"
  kind: "Linux"
  sku:
    tier: PremiumContainer
    size: PC2
credentials:
  subscription_id: ${ env.AZ_SUBSCRIPTION_ID }
  tenant_id: ${ env.AZ_TENANT_ID }
  client_id: ${ env.AZ_CLIENT_ID }
  client_secret: ${ env.AZ_CLIENT_SECRET }
$ dacrane deploy [resource]
$ dacrane destroy [resource]
t-ikeda-sti commented 1 year ago

implemented.