Coder Social home page Coder Social logo

codenize-tools / applb Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 3.0 59 KB

Applb is a tool to manage ALB. It defines the state of ALB using DSL, and updateds ALB according DSL.

License: MIT License

Ruby 94.96% Shell 0.15% HTML 4.89%
alb aws elb-v2

applb's People

Contributors

aibou avatar limitusus avatar unasuke avatar wata-gh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

applb's Issues

Proposal: Using security group NAMEs instead of IDs

Hi there,

Currently, we have to write security group IDs such as:

security_groups(
  "sg-12345678",
  "sg-90abcdef",
)

It makes us confuse.
I think that most of users of the applb is using the piculet, they would not consider about security group IDs.
So I'll be happy when we could write security group name such as:

security_groups(
  "elb-foo",
  "http-from-my-house",
  "http-from-anywhere",
)

Is it acceptable to you? What do you think about it?

New attribute: routing

Seems to be added routing.http2.enabled and applb -e generates the following invalid DSL;

    attributes do
      access_logs({
        s3_enabled: false,
        s3_bucket: "",
        s3_prefix: "",
      })
      routing http2 enabled: true # THIS LINE
      idle_timeout timeout_seconds: 1800
      deletion_protection enabled: true
    end

Obviously it causes an exception

NoMethodError: undefined method `http2' for #Applb::DSL::EC2::LoadBalancer::Attributes:0x00007fe82da13b60

target_type appears as diff

Existing ALB shows the following diff these days:

I, [2017-11-09T12:09:00.514893 #69443]  INFO -- : Modify target group tg-test
I, [2017-11-09T12:09:00.532015 #69443]  INFO -- : <diff>
  :name=>"tg-test",
  :port=>80,
  :protocol=>"HTTP",
- :target_type=>"instance",
  :unhealthy_threshold_count=>3,
  :vpc_id=>"vpc-abcdefgh"}

target_type is not defined as DSL, so there is no workaround for now.

Feature request: ignore un-managed ALBs

Hi,
in my environment, ALBs are managed by a combination of applb and terraform.
Then applb detects terraform-managing ones as difference.
If possible, I won't use -i or -x options for them.

For example, roadwork can ignore any hosted_zone, like this.

hosted_zone 'xxx.com.' do
  vpc 'ap-northeast-1', 'vpc-xxxxxxxx'
  ignore(//)
end

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.