https://github.com/jameswoolfenden/terraform-gcp-appengine
Get your container running, simply.
https://github.com/jameswoolfenden/terraform-gcp-appengine
appengine gcp module terraform
Last synced: about 1 year ago
JSON representation
Get your container running, simply.
- Host: GitHub
- URL: https://github.com/jameswoolfenden/terraform-gcp-appengine
- Owner: JamesWoolfenden
- License: apache-2.0
- Created: 2019-11-12T11:49:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-12T06:52:49.000Z (over 2 years ago)
- Last Synced: 2023-12-16T12:57:46.804Z (over 2 years ago)
- Topics: appengine, gcp, module, terraform
- Language: HCL
- Homepage:
- Size: 82 KB
- Stars: 4
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# terraform-gcp-appengine
[](https://github.com/JamesWoolfenden/terraform-gcp-appengine)
[](https://github.com/JamesWoolfenden/terraform-gcp-appengine/releases/latest)
[](https://github.com/JamesWoolfenden/terraform-gcp-appengine/releases/latest)

[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=JamesWoolfenden%2Fterraform-gcp-appengine&benchmark=CIS+AWS+V1.2)
[](https://github.com/pre-commit/pre-commit)
[](https://www.checkov.io/)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=JamesWoolfenden%2Fterraform-gcp-appengine&benchmark=INFRASTRUCTURE+SECURITY)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=JamesWoolfenden%2Fterraform-gcp-appengine&benchmark=CIS+GCP+V1.1)
A working AppEngine module with example.
## Usage
Add **module.appengine.tf** to your code:-
```terraform
module "appengine" {
source ="jameswoolfenden/appengine/gcp"
version = "0.1.1"
common_tags = var.common_tags
project = var.project
app = var.app
sourcezip = var.sourcezip
}
```
## Requirements
No requirements.
## Providers
| Name | Version |
|------|---------|
| [google](#provider\_google) | n/a |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [google_app_engine_standard_app_version.examplea](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/app_engine_standard_app_version) | resource |
| [google_storage_bucket.bucket](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket) | resource |
| [google_storage_bucket_object.object](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket_object) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [app](#input\_app) | A map of all the service properties | `map(any)` | n/a | yes |
| [common\_labels](#input\_common\_labels) | This is to help you add tags to your cloud objects | `map(any)` | n/a | yes |
| [entrypoint](#input\_entrypoint) | app entrypoint | `string` | `"python3 ./main.py"` | no |
| [location](#input\_location) | n/a | `string` | `"eu"` | no |
| [project](#input\_project) | GCP Project | `string` | n/a | yes |
| [sourcezip](#input\_sourcezip) | The Source zip file payload for app engine | `string` | n/a | yes |
| [storage\_class](#input\_storage\_class) | n/a | `string` | `"STANDARD"` | no |
| [versioning](#input\_versioning) | Switch for versioning | `bool` | `true` | no |
## Outputs
| Name | Description |
|------|-------------|
| [app](#output\_app) | n/a |
## Role and Permissions
The Terraform resource required is:
```golang
resource "google_project_iam_custom_role" "terraform_pike" {
project = "pike"
role_id = "terraform_pike"
title = "terraform_pike"
description = "A user with least privileges"
permissions = [
"storage.buckets.create",
"storage.buckets.delete",
"storage.buckets.get",
"storage.buckets.update",
"storage.objects.create",
"storage.objects.delete",
"storage.objects.get"
]
}
```
## Related Projects
Check out these related projects.
- [terraform-aws-codecommit](https://github.com/jameswoolfenden/terraform-aws-codebuild) - Storing ones code
## Help
**Got a question?**
File a GitHub [issue](https://github.com/jameswoolfenden/terraform-gcp-appengine/issues).
## Contributing
### Bug Reports & Feature Requests
Please use the [issue tracker](https://github.com/jameswoolfenden/terraform-gcp-appengine/issues) to report any bugs or file feature requests.
## Copyrights
Copyright © 2019-2023 James Woolfenden
## License
[](https://opensource.org/licenses/Apache-2.0)
See [LICENSE](LICENSE) for full details.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
### Contributors
[![James Woolfenden][jameswoolfenden_avatar]][jameswoolfenden_homepage]
[James Woolfenden][jameswoolfenden_homepage]
[jameswoolfenden_homepage]: https://github.com/jameswoolfenden
[jameswoolfenden_avatar]: https://github.com/jameswoolfenden.png?size=150
Notes
```cli
gcloud components install app-engine-python
Example sourced from:
git clone https://github.com/GoogleCloudPlatform/python-docs-samples
.\appengine\standard\hello_world\
gcloud app deploy .\app.yaml
enable api
https://console.developers.google.com/apis/api/appengine.googleapis.com/overview?project=756760134552
Ensure you have adequate permission with App Engine.
```