GithubHelp home page GithubHelp logo

teliadk / terraform-aws-microservice Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 3.0 79 KB

Terraform module for ECS microservices

HCL 100.00%
terraform aws service-mesh appmesh cloudmap microservice module

terraform-aws-microservice's People

Contributors

casperc avatar feferka avatar joakimhew avatar landadav avatar vojtechpustowka avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

terraform-aws-microservice's Issues

Allow overriding default security group rules

Right now, the module creates one ingress rule and one egress rule which is static and should be set from outside the module instead.

We could either let this be up to the consumer of the module by simply exposing the security group id and have them setup the security group rules through terraform security_group_rule or by using the dynamic feature of HCL >=0.12 to dynamicly create these based on user input.

Remove implicitly defined ingress and egress rules

Unfortunately it is not possible to use both implicitly defined ingress/egress rules and explicitly defined rules using the aws_security_group_rule in terraform as this creates a conflict and causes some rules to disappear. To solve this we should remove the implicitly defined rules and only define ingress/egress explicitly with aws_security_group_rule.

More information about this is found on the top of the documentation for aws_security_group_rule

NOTE on Security Groups and Security Group Rules: Terraform currently provides both a standalone Security Group Rule resource (a single ingress or egress rule), and a Security Group resource with ingress and egress rules defined in-line. At this time you cannot use a Security Group with in-line rules in conjunction with any Security Group Rule resources. Doing so will cause a conflict of rule settings and will overwrite rules.

ingress {
protocol = "tcp"
from_port = var.port
to_port = var.port
cidr_blocks = ["10.0.0.0/8"]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}

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.