Skip to content

Commit

Permalink
Updated Scaleway implementation (#92)
Browse files Browse the repository at this point in the history
* Updated README.MD for zsh shell, removed version requirement for Terraform Provider for Scaleway, updated acl definition to avoid deprecated syntax.

* Delete scw.tfvars

* Template .tfvars file added

* Add files via upload

---------

Co-authored-by: Chad <[email protected]>
  • Loading branch information
thoerup and chadgeary committed Dec 21, 2023
1 parent a3d3e6f commit 0c38240
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
*-setup-*.sh
*-init-*.yml
*.swp
.vscode
.DS_Store
.vscode
6 changes: 4 additions & 2 deletions scw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ brew install terraform git
curl -o ~/scw -L "https://github.com/scaleway/scaleway-cli/releases/download/v2.3.0/scw-2.3.0-darwin-x86_64"
chmod +x ~/scw
# Add alias
# Add alias (bash)
echo "alias scw ~/scw" >> ~/.bash_profile && source ~/.bash_profile
# ...or zsh
echo "alias scw=\"~/scw\"" >> ~/.zshrc && source ~/.zshrc
# Verify the three are installed
which terraform git gcloud scw
which terraform git scw
# Skip down to 'git clone' below
```
Expand Down
1 change: 0 additions & 1 deletion scw/scw-generic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ terraform {
required_providers {
scaleway = {
source = "scaleway/scaleway"
version = "2.0.0-rc1"
}
}
required_version = ">= 0.13"
Expand Down
6 changes: 5 additions & 1 deletion scw/scw-storage.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
resource "scaleway_object_bucket" "scw-backup-bucket" {
name = "${var.scw_prefix}-backup-bucket-${random_string.scw-random.result}"
acl = "private"
region = var.scw_region
}

resource "scaleway_object_bucket_acl" "scw-backup-bucket" {
bucket = "${var.scw_prefix}-backup-bucket-${random_string.scw-random.result}"
acl = "private"
}

0 comments on commit 0c38240

Please sign in to comment.