Skip to content

Commit

Permalink
Skeleton of GCP Cloud Functions example
Browse files Browse the repository at this point in the history
  • Loading branch information
Terraform Examples Bot authored and AymenSegni committed Sep 22, 2021
1 parent 06b080f commit 1e315f4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .test_log.log
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ f9e541fa323f834a690f2f915bfe0b75309dc4d8
7db8e34d876104c105e7d001ef1d7276284d69ed
afdd41fa72b865caf61aa32dfb02bab2add6d8db
0f442e01cb48d068782c42c00c7e37fc088c9559
06b080fd65d0223564a2e459ed9e0b006b5eaa98
2 changes: 2 additions & 0 deletions google/google_cloud_functions/simple/destroy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
../../../bin/destroy.sh google
2 changes: 2 additions & 0 deletions google/google_cloud_functions/simple/hello_world_app/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def hello_world(request):
return f"Hello, World!"
23 changes: 23 additions & 0 deletions google/google_cloud_functions/simple/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Documentation: https://www.terraform.io/docs/language/settings/index.html

// tbd: add terraform settings here

# Documentation: https://www.terraform.io/docs/language/providers/requirements.html

// tbd: add gcp provider here

# Documentation: https://www.terraform.io/docs/language/values/variables.html

// tbd: decalre inputs here

// tbd: zip up our source code

# Documentation: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket

// tbd: create the storage bucket

// tbd place the zip-ed code in the bucket

# Documentation: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions_function

// tbd: create the Cloud Function here
2 changes: 2 additions & 0 deletions google/google_cloud_functions/simple/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
../../../bin/apply.sh google

0 comments on commit 1e315f4

Please sign in to comment.