-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature #6
base: main
Are you sure you want to change the base?
Add feature #6
Changes from all commits
61a9d69
2ec0233
16d3dcf
95c15f5
c39a3cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -17,10 +17,11 @@ provider "google" { | |||||||||||||||||||||||||||||
zone = "${var.region}-b" | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
resource "google_compute_project_default_network_tier" "default" { | ||||||||||||||||||||||||||||||
resource "google_copute_project_default_network_tier" "default" { | ||||||||||||||||||||||||||||||
network_tier = "PREMIUM" | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
resource "google_compute_network" "vpc_network" { | ||||||||||||||||||||||||||||||
name = "gcp-test-network" | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
@@ -53,6 +54,14 @@ resource "google_storage_bucket_object" "test_image" { | |||||||||||||||||||||||||||||
bucket = google_storage_bucket.private_bucket.name | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
resource "google_storage_bucket_object" "test_image" { | ||||||||||||||||||||||||||||||
name = "test2.jpg" | ||||||||||||||||||||||||||||||
source = "test/2.jpg" | ||||||||||||||||||||||||||||||
content_type = "image/jpeg" | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
bucket = google_storage_bucket.private_bucket.name | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
Comment on lines
+57
to
+63
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Resolve resource naming conflict for bucket objects. Apply the following diff to rename the new resource: - resource "google_storage_bucket_object" "test_image" {
- name = "test2.jpg"
- source = "test/2.jpg"
- content_type = "image/jpeg"
-
- bucket = google_storage_bucket.private_bucket.name
- }
+ resource "google_storage_bucket_object" "test_image_2" {
+ name = "test2.jpg"
+ source = "test/2.jpg"
+ content_type = "image/jpeg"
+
+ bucket = google_storage_bucket.private_bucket.name
+ } 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
resource "google_storage_bucket_iam_member" "default" { | ||||||||||||||||||||||||||||||
bucket = google_storage_bucket.private_bucket.name | ||||||||||||||||||||||||||||||
role = "roles/storage.objectViewer" | ||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the resource type typo.
The resource type "google_copute_project_default_network_tier" appears to include a typographical error. It should likely be "google_compute_project_default_network_tier" to be recognized by Terraform.
Apply the following diff to fix the typo:
📝 Committable suggestion