Giter Club home page Giter Club logo

terraform-aws-codefresh-backing-services's Introduction

README Header

Cloud Posse

terraform-aws-codefresh-backing-services

Build Status Latest Release Slack Community

Terraform module to provision CodeFresh Enterprise backing services


This project is part of our comprehensive "SweetOps" approach towards DevOps.

Terraform Open Source Modules

It's 100% Open Source and licensed under the APACHE2.

We literally have hundreds of terraform modules that are Open Source and well-maintained. Check them out!

Introduction

The module provisions the following resources:

NOTE: This module can be enabled or disabled in entirety using the enabled flag or you can override certain services e.g. s3_enabled = "true" which will enable only the S3 backing service resources given enabled = "false"

Usage

IMPORTANT: The master branch is used in source just as an example. In your code, do not pin to master because there may be breaking changes between releases. Instead pin to the release tag (e.g. ?ref=tags/x.y.z) of one of our latest releases.

module "codefresh_backing_services" {
  source          = "git::https://github.com/cloudposse/terraform-aws-codefresh-backing-services.git?ref=master"
  enabled         = "true"
  name            = "${var.name}"
  namespace       = "${var.namespace}"
  region          = "${var.region}"
  stage           = "${var.stage}"
  vpc_id          = "${module.vpc.vpc_id}"
  subnet_ids      = ["${module.subnets.private_subnet_ids}"]
  security_groups = ["${module.vpc.vpc_default_security_group_id}"]
}

For a complete example, see examples/complete

Makefile Targets

Available targets:

  help                                Help screen
  help/all                            Display help for all targets
  help/short                          This help short screen
  lint                                Lint terraform code

Inputs

Name Description Type Default Required
acm_enabled Set to false to prevent the acm module from creating any resources string true no
acm_primary_domain A domain name for which the certificate should be issued string - yes
acm_san_domains A list of domains that should be SANs in the issued certificate list <list> no
attributes Additional attributes (e.g. 1) list <list> no
backup_enabled Set to false to prevent the module from creating any resources string `` no
backup_s3_access_key_name Backup s3 user IAM access key name for storing in SSM. Default to aws_acces_key_id so chamber exports as AWS_ACCESS_KEY_ID, a standard AWS IAM ENV variable string codefresh_backups_aws_access_key_id no
backup_s3_allowed_bucket_actions List of actions to permit for backup s3 bucket list <list> no
backup_s3_secret_key_name Backup s3 user IAM secret key name for storing in SSM. Default to aws_secret_acces_key so chamber exports as AWS_SECRET_ACCESS_KEY, a standard AWS IAM ENV variable string codefresh_backups_aws_secret_access_key no
backup_s3_user_enabled Set to true to create an user with permission to access the backup s3 bucket string `` no
chamber_format Format to store parameters in SSM, for consumption with chamber string /%s/%s no
chamber_service chamber service name. See chamber usage for more details string `` no
delimiter Delimiter to be used between namespace, stage, name and attributes string - no
documentdb_apply_immediately Specifies whether any cluster modifications are applied immediately, or during the next maintenance window string true no
documentdb_chamber_parameters_mapping Allow to specify keys names for chamber to store values map <map> no
documentdb_cluster_enabled Set to false to prevent the module from creating DocumentDB cluster string true no
documentdb_cluster_family The family of the DocumentDB cluster parameter group. For more details, see https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-parameter-group-create.html string docdb3.6 no
documentdb_cluster_parameters List of DB parameters to apply list <list> no
documentdb_cluster_size Number of DB instances to create in the cluster string 3 no
documentdb_enabled_cloudwatch_logs_exports List of log types to export to CloudWatch. The following log types are supported: audit, error, general, slowquery list <list> no
documentdb_engine The name of the database engine to be used for this DB cluster. Defaults to docdb. Valid values: docdb string docdb no
documentdb_engine_version The version number of the database engine to use string `` no
documentdb_instance_class The instance class to use. For more details, see https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-classes.html#db-instance-class-specs string db.r4.large no
documentdb_master_password Password for the master DB user. If left empty, will be generated automatically. Note that this may show up in logs, and it will be stored in the state file string `` no
documentdb_master_username Username for the master DB user. If left empty, will be generated automatically string `` no
documentdb_port DocumentDB port string 27017 no
documentdb_preferred_backup_window Daily time range during which the backups happen string 07:00-09:00 no
documentdb_retention_period Number of days to retain backups for string 5 no
documentdb_skip_final_snapshot Determines whether a final DB snapshot is created before the DB cluster is deleted string true no
documentdb_storage_encrypted Specifies whether the DB cluster is encrypted string true no
enabled Set to false to prevent the module from creating any resources string true no
kms_key_id KMS key ID used to encrypt SSM parameters string `` no
name Name (e.g. cf or codefresh) string cf no
namespace Namespace (e.g. eg or cp) string - yes
overwrite_ssm_parameter Whether to overwrite an existing SSM parameter string true no
postgres_admin_password Postgres password for the admin user string `` no
postgres_admin_user Postgres admin user name string `` no
postgres_cluster_enabled Set to false to prevent the module from creating any resources string true no
postgres_cluster_family Postgres cluster DB family. Currently supported values are aurora-postgresql9.6 and aurora-postgresql10 string aurora-postgresql9.6 no
postgres_cluster_size Postgres cluster size string 2 no
postgres_db_name Postgres database name string `` no
postgres_instance_type EC2 instance type for Postgres cluster string db.r4.large no
postgres_maintenance_window Weekly time range during which system maintenance can occur, in UTC string sun:03:00-sun:04:00 no
redis_apply_immediately Whether to apply changes immediately or during the next maintenance window string true no
redis_at_rest_encryption_enabled Enable Redis encryption at rest string true no
redis_auth_token Auth token for password protecting Redis. transit_encryption_enabled must be set to true! Password must be longer than 16 chars string `` no
redis_automatic_failover Whether to enable automatic failover string true no
redis_cluster_enabled Set to false to prevent the module from creating any resources string true no
redis_cluster_size Redis cluster size string 2 no
redis_engine_version Version of Redis engine string 5.0.0 no
redis_instance_type EC2 instance type for Redis cluster string cache.t2.medium no
redis_maintenance_window Weekly time range during which system maintenance can occur, in UTC string sun:03:00-sun:04:00 no
redis_params A list of Redis parameters to apply. Note that parameters may differ from a Redis family to another list <list> no
redis_transit_encryption_enabled Enable TLS for Redis cluster string true no
s3_access_key_name S3 user IAM access key name for storing in SSM. Default to aws_acces_key_id so chamber exports as AWS_ACCESS_KEY_ID, a standard AWS IAM ENV variable string aws_access_key_id no
s3_allowed_bucket_actions List of actions to permit for S3 bucket list <list> no
s3_enabled Set to false to prevent the module from creating any resources string `` no
s3_secret_key_name S3 user IAM secret key name for storing in SSM. Default to aws_secret_acces_key so chamber exports as AWS_SECRET_ACCESS_KEY, a standard AWS IAM ENV variable string aws_secret_access_key no
s3_user_enabled Set to true to create an S3 user with permission to access the bucket string `` no
s3_versioning_enabled Whether to enable versioning on the S3 bucket. string false no
security_groups List of security groups to be allowed to connect to the CodeFresh backing services list <list> no
stage Stage (e.g. prod, dev, staging) string - yes
subnet_ids A list of subnet IDs to launch the CodeFresh backing services in list <list> no
tags Additional tags (e.g. map(Cluster,us-east-1.cloudposse.co) map <map> no
vpc_id VPC ID for the CodeFresh backing services string - yes
zone_name DNS zone name string - yes

Outputs

Name Description
acm_arn The ARN of the certificate
acm_domain_validation_options CNAME records that are added to the DNS zone to complete certificate validation
aurora_postgres_cluster_name Aurora Postgres Cluster Identifier
aurora_postgres_database_name Aurora Postgres Database name
aurora_postgres_master_hostname Aurora Postgres DB Master hostname
aurora_postgres_master_username Aurora Postgres Username for the master DB user
aurora_postgres_replicas_hostname Aurora Postgres Replicas hostname
backup_s3_access_key_id The access key ID for backup user
backup_s3_bucket_arn The backup s3 bucket ARN
backup_s3_secret_access_key The secret access key for backup user. This will be written to the state file in plain-text
backup_s3_user_arn The ARN assigned by AWS for the backup user
backup_s3_user_name Normalized IAM backup user name
backup_s3_user_unique_id The backup user unique ID assigned by AWS
documentdb_arn Amazon Resource Name (ARN) of the DocumentDB cluster
documentdb_cluster_name DocumentDB Cluster Identifier
documentdb_endpoint Endpoint of the DocumentDB cluster
documentdb_master_host DocumentDB master hostname
documentdb_master_username DocumentDB Username for the master DB user
documentdb_reader_endpoint Read-only endpoint of the DocumentDB cluster, automatically load-balanced across replicas
documentdb_replicas_host DocumentDB replicas hostname
elasticache_redis_host Elasticache Redis host
elasticache_redis_id Elasticache Redis cluster ID
elasticache_redis_security_group_id Elasticache Redis security group ID
s3_access_key_id The access key ID
s3_bucket_arn The s3 bucket ARN
s3_secret_access_key The secret access key. This will be written to the state file in plain-text
s3_user_arn The ARN assigned by AWS for the user
s3_user_name Normalized IAM user name
s3_user_unique_id The user unique ID assigned by AWS

Share the Love

Like this project? Please give it a ★ on our GitHub! (it helps us a lot)

Are you using this project or any of our other projects? Consider leaving a testimonial. =)

Related Projects

Check out these related projects.

Help

Got a question?

File a GitHub issue, send us an email or join our Slack Community.

README Commercial Support

Commercial Support

Work directly with our team of DevOps experts via email, slack, and video conferencing.

We provide commercial support for all of our Open Source projects. As a Dedicated Support customer, you have access to our team of subject matter experts at a fraction of the cost of a full-time engineer.

E-Mail

  • Questions. We'll use a Shared Slack channel between your team and ours.
  • Troubleshooting. We'll help you triage why things aren't working.
  • Code Reviews. We'll review your Pull Requests and provide constructive feedback.
  • Bug Fixes. We'll rapidly work to fix any bugs in our projects.
  • Build New Terraform Modules. We'll develop original modules to provision infrastructure.
  • Cloud Architecture. We'll assist with your cloud strategy and design.
  • Implementation. We'll provide hands-on support to implement our reference architectures.

Terraform Module Development

Are you interested in custom Terraform module development? Submit your inquiry using our form today and we'll get back to you ASAP.

Slack Community

Join our Open Source Community on Slack. It's FREE for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally sweet infrastructure.

Newsletter

Signup for our newsletter that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.

Contributing

Bug Reports & Feature Requests

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

Developing

If you are interested in being a contributor and want to get involved in developing this project or help out with our other projects, we would love to hear from you! Shoot us an email.

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull Request so that we can review your changes

NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!

Copyright

Copyright © 2017-2019 Cloud Posse, LLC

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.

Trademarks

All other trademarks referenced herein are the property of their respective owners.

About

This project is maintained and funded by Cloud Posse, LLC. Like it? Please let us know by leaving a testimonial!

Cloud Posse

We're a DevOps Professional Services company based in Los Angeles, CA. We ❤️ Open Source Software.

We offer paid support on all of our projects.

Check out our other projects, follow us on twitter, apply for a job, or hire us to help with your cloud strategy and implementation.

Contributors

Erik Osterman
Erik Osterman
Andriy Knysh
Andriy Knysh
Igor Rodionov
Igor Rodionov
Josh Myers
Josh Myers

README Footer Beacon

terraform-aws-codefresh-backing-services's People

Contributors

aknysh avatar goruha avatar joshmyers avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.