JamesWoolfenden / terraform-gcp-artifact-repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-gcp-artifact-repository

Build Status Latest Release GitHub tag (latest SemVer) Terraform Version Infrastructure Tests pre-commit checkov Infrastructure Tests

Usage

Add module.art.tf to your code:-

module "art" {
  source             = "JamesWoolfenden/artifact-repository/gcp"
  version            = "0.0.1"
}

Requirements

No requirements.

Providers

Name Version
google n/a
google-beta n/a

Modules

No modules.

Resources

Name Type
google-beta_google_artifact_registry_repository.pike resource
google_artifact_registry_repository_iam_member.member resource
google_kms_crypto_key_iam_member.pike resource

Inputs

Name Description Type Default Required
cleanup_policies n/a
list(object({
id = string
action = string
condition = list(object({
tag_state = string
tag_prefixes = list(string)
older_than = string
package_name_prefixes = list(string)
}))
most_recent_versions = list(object({
package_name_prefixes = list(string)
keep_count = number
}))
}))
n/a yes
common_tags This is to help you add tags to your cloud objects map(any) n/a yes
key n/a any n/a yes
members (optional) describe your variable list(string) [] no
project n/a any n/a yes
repository (optional) describe your variable
object({
id = string
description = string
format = string
location = string
})
n/a yes

Outputs

Name Description
registry n/a

Information

The Terraform resource required is:

resource "google_project_iam_custom_role" "terraform_pike" {
  project     = "pike"
  role_id     = "terraform_pike"
  title       = "terraform_pike"
  description = "A user with least privileges"
  permissions = [
    "artifactregistry.repositories.create",
    "artifactregistry.repositories.delete",
    "artifactregistry.repositories.get",
    "artifactregistry.repositories.getIamPolicy",
    "artifactregistry.repositories.setIamPolicy",
    "artifactregistry.repositories.update",
    "cloudkms.cryptoKeys.getIamPolicy",
    "cloudkms.cryptoKeys.setIamPolicy"
  ]
}

Related Projects

Check out these related projects.

Help

Got a question?

File a GitHub issue.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Copyrights

Copyright © 2023 James Woolfenden

License

License

See 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

https://www.apache.org/licenses/LICENSE-2.0

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
James Woolfenden

About

License:Apache License 2.0


Languages

Language:HCL 65.9%Language:Makefile 24.0%Language:PowerShell 4.2%Language:Python 3.3%Language:Shell 2.6%