File tree Expand file tree Collapse file tree 4 files changed +51
-11
lines changed
GoogleStorageWagon/deploy Expand file tree Collapse file tree 4 files changed +51
-11
lines changed Original file line number Diff line number Diff line change 1+ By applying this terraform file the following resources shall be created on your azure account.
2+
3+ * Azure resource group
4+ * Azure storage account
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2018 Emmanouil Gkatziouras
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ variable "storage_account_name" {
18+ }
19+
20+ variable "location" {
21+ default = " westeurope"
22+ }
23+
24+ variable "resource_group_name" {
25+ default = " CloudStorageMaven"
26+ }
27+
28+ resource "azurerm_resource_group" "cloud_storage_maven_resource_group" {
29+ name = " ${ var . resource_group_name } "
30+ location = " ${ var . location } "
31+ }
32+
33+ resource "azurerm_storage_account" "cloud_storage_maven_storage_account" {
34+ name = " ${ var . storage_account_name } "
35+ resource_group_name = " ${ azurerm_resource_group . cloud_storage_maven_resource_group . name } "
36+ location = " ${ var . location } "
37+ account_tier = " Standard"
38+ account_replication_type = " LRS"
39+ }
Original file line number Diff line number Diff line change 11By executing this file certain resources on google cloud are going to be created.
22
3- Storage bucket to use as a repository
4- IAM role with permissions to create, get, delete and list bucket objects
5- Service account
6- Service account bucket IAM binding
3+ * Storage bucket to use as a repository
4+ * IAM role with permissions to create, get, delete and list bucket objects
5+ * Service account
6+ * Service account bucket IAM binding
Original file line number Diff line number Diff line change 11By executing this file certain resources on aws are going to be created.
22
3- A bucket in order to use as a repository
4-
5- A policy in order to read, write to the bucket and list the files available
6-
7- A role in order to attach it to your ec2-instance or ci/cd jobs
8-
9- A group to attach to the users in order to be able to execute requests
3+ * A bucket in order to use as a repository
4+ * A policy in order to read, write to the bucket and list the files available
5+ * A role in order to attach it to your ec2-instance or ci/cd jobs
6+ * A group to attach to the users in order to be able to execute requests
You can’t perform that action at this time.
0 commit comments