Giter Site home page Giter Site logo

aws-samples / access-internal-alb-through-aws-global-accelerator Goto Github PK

View Code? Open in Web Editor NEW
4.0 8.0 2.0 106 KB

The purpose of this repository is to demo how to access an internal Application Load Balancer (ALB) through AWS Global Accelerator.

License: MIT No Attribution

access-internal-alb-through-aws-global-accelerator's Introduction

Access Internal Application Load Balancer through AWS Global Accelerator

The purpose of this repository is to demo how to access an internal Application Load Balancer (ALB) through AWS Global Accelerator.

AWS CloudFormation template (main.yml) will deploy a Virtual Private Cloud(VPC) with 2 Public and 2 Private subnets within the VPC. Later it will create an Internal Application Load Balancer attached to an Auto Scaling Group where it will serve a simple PHP application and echo real-client IP using HTTP_X_FORWARDED_FOR header. The access to this PHP application is done through AWS Global Accelerator.

You can read more in this blog post.

Architecture

int-alb-with-aws-ga

Launch the AWS CloudFormation Stack

Click on the Launch Stack button below to launch the CloudFormation Stack to set up the AWS Global Accelerator Demo in the region of your preference, by default this demo will be deployed in us-west-2 (Oregon) region.

Launch CFN stack

Provide a stack name eg int-alb-with-aws-ga.

You can launch the same stack using the AWS CLI. Here's an example:

aws cloudformation create-stack --stack-name int-alb-with-aws-ga \
   --template-body file://main.yml \
   --capabilities CAPABILITY_NAMED_IAM \
   --region us-west-2

How to Access Your Application

Once stack creation is completed, it will output the AWS Global Accelerator DNS Name under "Outputs" tab of your stack. Another way of accessing via CLI:

aws cloudformation describe-stacks --stack-name int-alb-with-aws-ga \
   --query "Stacks[0].Outputs[0].OutputValue" \
   --region us-west-2

Clean up

After completing your demo, delete AWS CloudFormation Stack using AWS Console or AWS CLI:

aws cloudformation delete-stack --stack-name int-alb-with-aws-ga  --region us-west-2

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

access-internal-alb-through-aws-global-accelerator's People

Contributors

amazon-auto avatar sgulbetekin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

access-internal-alb-through-aws-global-accelerator's Issues

Wrong file name

aws cloudformation create-stack --stack-name int-alb-with-aws-ga
--template-body file://main.yaml
--capabilities CAPABILITY_NAMED_IAM
--region us-west-2

Here filename is wrong. It should be main.yml

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.