-
Verify if the resource already exists in the resources list.
-
If it does not exist, add a new component.
See Storage Buckets for an example to copy.
-
When implementing the template, prefer to use Cloud Foundation Toolkit modules.
If none is available, consider writing a new CFT module if you anticipate it would be useful to the community (or file a feature request).
If a module would not add much value, use a resource directly from the Terraform Google Provider.
-
Add the resource in resources recipe.
-
Add an example in the team module.
-
Regenerate docs and examples by running
scripts/regen.sh
from the root repo dir. -
Run
go test ./...
from root repo dir to verify the resource works as intended.
This should be done if the resource already exists.
-
Add the field in the resource's component.
Note: If the resource uses a Cloud Foundation Toolkit module, you may need to add the field there first by sending a pull request and then waiting for a release.
-
Update the resource schema.
-
Add an example in the team module.
-
Regenerate docs and examples by running
scripts/regen.sh
from the root repo dir. -
Run
go test ./...
from root repo dir to verify the resource works as intended.