Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sacloud/terraform-provider-sakuracloud
Terraform provider for SakuraCloud
https://github.com/sacloud/terraform-provider-sakuracloud
sakuracloud terraform terraform-provider
Last synced: 1 day ago
JSON representation
Terraform provider for SakuraCloud
- Host: GitHub
- URL: https://github.com/sacloud/terraform-provider-sakuracloud
- Owner: sacloud
- License: apache-2.0
- Created: 2016-05-13T00:29:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T02:36:59.000Z (9 days ago)
- Last Synced: 2024-12-16T03:22:03.626Z (9 days ago)
- Topics: sakuracloud, terraform, terraform-provider
- Language: Go
- Homepage: https://docs.usacloud.jp/terraform
- Size: 21.3 MB
- Stars: 71
- Watchers: 8
- Forks: 22
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# Terraform Provider for SakuraCloud
![Test Status](https://github.com/sacloud/terraform-provider-sakuracloud/workflows/Tests/badge.svg)
[![Discord](https://img.shields.io/badge/Discord-SAKURA%20Users-blue)](https://discord.gg/yUEDN8hbMf)- Terraform Website: https://terraform.io
- Terraform Registry: https://registry.terraform.io/providers/sacloud/sakuracloud/latest
- Documentation: https://registry.terraform.io/providers/sacloud/sakuracloud/latest/docs
- Documentation(ja): https://docs.usacloud.jp/terraform
- Discord: https://discord.gg/yUEDN8hbMf## Usage Example
```hcl
# Configure the SakuraCloud Provider
terraform {
required_providers {
sakuracloud = {
source = "sacloud/sakuracloud"# We recommend pinning to the specific version of the SakuraCloud Provider you're using
# since new versions are released frequently
version = "2.26.0"
#version = "~> 2"
}
}
}
provider "sakuracloud" {
# More information on the authentication methods supported by
# the SakuraCloud Provider can be found here:
# https://docs.usacloud.jp/terraform/provider/# profile = "..."
}variable password {}
data "sakuracloud_archive" "ubuntu" {
os_type = "ubuntu2004"
}resource "sakuracloud_disk" "example" {
name = "example"
source_archive_id = data.sakuracloud_archive.ubuntu.id# If you want to prevent re-creation of the disk
# when archive id is changed, please uncomment this.
# lifecycle {
# ignore_changes = [
# source_archive_id,
# ]
# }
}resource "sakuracloud_server" "example" {
name = "example"
disks = [sakuracloud_disk.example.id]
core = 1
memory = 2
description = "description"
tags = ["app=web", "stage=staging"]network_interface {
upstream = "shared"
}disk_edit_parameter {
hostname = "example"
password = var.password
}
}
```## Requirements
- [Terraform](https://terraform.io) v0.12+
## License
`terraform-proivder-sakuracloud` Copyright (C) 2016-2023 terraform-provider-sakuraclou authors.
This project is published under [Apache 2.0 License](LICENSE).