Skip to content

Commit e26bac4

Browse files
committed
chore(contrib/ec2): rename ec2 to aws
We were incorrectly using "AWS" and "EC2" interchangeably, when in fact EC2 is one of the services that compose AWS. Deis clusters on AWS make use of EC2 and CloudFormation and other AWS services, so calling it EC2 is incorrect, and using both terms is inconsistent.
1 parent 420ee7c commit e26bac4

16 files changed

Lines changed: 48 additions & 41 deletions

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ contrib/coreos/user-data
6666
# Local controller settings file
6767
controller/deis/local_settings.py
6868

69-
# EC2 CloudFormation Setup
70-
contrib/ec2/cloudformation.json
69+
# AWS CloudFormation Setup
70+
contrib/aws/cloudformation.json
7171

7272
# GCE generated user-data
7373
contrib/gce/gce-user-data
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
CURR_DIR = os.path.dirname(os.path.realpath(__file__))
77

8-
# Add EC2-specific units to the shared user-data
8+
# Add AWS-specific units to the shared user-data
99
FORMAT_DOCKER_VOLUME = '''
1010
[Unit]
1111
Description=Formats the added EBS volume for Docker
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Usage: ./provision-ec2-cluster.sh [name]
3+
# Usage: ./provision-aws-cluster.sh [name]
44
# The [name] is the CloudFormation stack name, and defaults to 'deis'
55

66
if [ -z "$1" ]
@@ -17,7 +17,7 @@ CONTRIB_DIR=$(dirname $THIS_DIR)
1717

1818
source $CONTRIB_DIR/utils.sh
1919

20-
# check for EC2 API tools in $PATH
20+
# check for AWS API tools in $PATH
2121
if ! which aws > /dev/null; then
2222
echo_red 'Please install the AWS command-line tool and ensure it is in your $PATH.'
2323
exit 1
@@ -47,7 +47,7 @@ bailout() {
4747
aws cloudformation delete-stack --stack-name $STACK_NAME
4848
}
4949

50-
# create an EC2 cloudformation stack based on CoreOS's default template
50+
# create an AWS cloudformation stack based on CoreOS's default template
5151
aws cloudformation create-stack \
5252
--template-body "$($THIS_DIR/gen-json.py)" \
5353
--stack-name $STACK_NAME \
@@ -68,7 +68,7 @@ until [ $(wc -w <<< $INSTANCE_IDS) -eq $DEIS_NUM_INSTANCES -a "$STACK_STATUS" =
6868
fi
6969

7070
STACK_STATUS=$(aws --output text cloudformation describe-stacks --stack-name $STACK_NAME --query 'Stacks[].StackStatus' $EXTRA_AWS_CLI_ARGS)
71-
if [ $STACK_STATUS != "CREATE_IN_PROGRESS" -a $STACK_STATUS != "CREATE_COMPLETE" ] ; then
71+
if [ $STACK_STATUS != "CREATE_IN_PROGRESS" -a $STACK_STATUS != "CREATE_COMPLETE" ] ; then
7272
echo "error creating stack: "
7373
aws --output text cloudformation describe-stack-events \
7474
--stack-name $STACK_NAME \
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Usage: ./update-ec2-cluster.sh [name]
3+
# Usage: ./update-aws-cluster.sh [name]
44
# The [name] is the CloudFormation stack name, and defaults to 'deis'
55

66
if [ -z "$1" ]
@@ -17,7 +17,7 @@ CONTRIB_DIR=$(dirname $THIS_DIR)
1717

1818
source $CONTRIB_DIR/utils.sh
1919

20-
# check for EC2 API tools in $PATH
20+
# check for AWS API tools in $PATH
2121
if ! which aws > /dev/null; then
2222
echo_red 'Please install the AWS command-line tool and ensure it is in your $PATH.'
2323
exit 1
@@ -30,7 +30,7 @@ fi
3030
# check that the CoreOS user-data file is valid
3131
$CONTRIB_DIR/util/check-user-data.sh
3232

33-
# update the deis EC2 cloudformation
33+
# update the AWS CloudFormation stack
3434
aws cloudformation update-stack \
3535
--template-body "$($THIS_DIR/gen-json.py)" \
3636
--stack-name $NAME \

docs/installing_deis/aws.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Amazon AWS
88

99
In this tutorial, we will show you how to set up your own 3-node cluster on Amazon Web Services.
1010

11-
Please :ref:`get the source <get_the_source>` and refer to the scripts in `contrib/ec2`_
11+
Please :ref:`get the source <get_the_source>` and refer to the scripts in `contrib/aws`_
1212
while following this documentation.
1313

1414
.. include:: ../_includes/_deis-pro.rst
@@ -22,7 +22,7 @@ In order to start working with Amazon's API, let's install `awscli`_:
2222
2323
$ pip install awscli
2424
25-
We'll also need `PyYAML`_ for the Deis EC2 provision script to run:
25+
We'll also need `PyYAML`_ for the Deis AWS provision script to run:
2626

2727
.. code-block:: console
2828
@@ -84,7 +84,7 @@ Customize cloudformation.json
8484
-----------------------------
8585

8686
The configuration files and templates for AWS are located in the directory
87-
``contrib/ec2/`` in the Deis repository.
87+
``contrib/aws/`` in the Deis repository.
8888

8989
Any of the parameter defaults defined in ``deis.template.json`` can be
9090
overridden by setting the value in `cloudformation.json`_. For example, to
@@ -130,7 +130,7 @@ The only entry in cloudformation.json required to launch your cluster is `KeyPai
130130
already filled out. The defaults will be applied for the other settings. The default values are
131131
defined in ``deis.template.json``.
132132

133-
If updated with ``update-ec2-cluster.sh``, the InstanceType will only impact newly deployed instances
133+
If updated with ``update-aws-cluster.sh``, the InstanceType will only impact newly deployed instances
134134
(`#1758`_).
135135

136136
NOTE: The smallest recommended instance size is ``large``. Having not enough CPU or RAM will result
@@ -187,8 +187,8 @@ Run the cloudformation provision script to spawn a new CoreOS cluster:
187187

188188
.. code-block:: console
189189
190-
$ cd contrib/ec2
191-
$ ./provision-ec2-cluster.sh
190+
$ cd contrib/aws
191+
$ ./provision-aws-cluster.sh
192192
Creating CloudFormation stack deis
193193
{
194194
"StackId": "arn:aws:cloudformation:us-east-1:69326027886:stack/deis/1e9916b0-d7ea-11e4-a0be-50d2020578e0"
@@ -209,7 +209,7 @@ Run the cloudformation provision script to spawn a new CoreOS cluster:
209209
.. note::
210210

211211
The default name of the CloudFormation stack will be ``deis``. You can specify a different name
212-
with ``./provision-ec2-cluster.sh <name>``.
212+
with ``./provision-aws-cluster.sh <name>``.
213213

214214
Remote IPs behind your ELB
215215
--------------------------
@@ -239,7 +239,7 @@ CloudFormation Updates
239239
----------------------
240240

241241
To use CloudFormation to perform update operations to your stack, there is another script:
242-
`update_ec2_cluster.sh`_. Depending on the parameters that you have changed, CloudFormation
242+
`update-aws-cluster.sh`_. Depending on the parameters that you have changed, CloudFormation
243243
may replace the EC2 instances in your stack.
244244

245245
The following parameters can be changed without replacing all instances in a stack:
@@ -255,11 +255,11 @@ Please reference the AWS documentation for `more information about CloudFormatio
255255

256256
.. _`#1758`: https://github.com/deis/deis/issues/1758
257257
.. _`awscli`: https://github.com/aws/aws-cli
258-
.. _`contrib/ec2`: https://github.com/deis/deis/tree/master/contrib/ec2
259-
.. _`cloudformation.json`: https://github.com/deis/deis/blob/master/contrib/ec2/cloudformation.json
258+
.. _`contrib/aws`: https://github.com/deis/deis/tree/master/contrib/aws
259+
.. _`cloudformation.json`: https://github.com/deis/deis/blob/master/contrib/aws/cloudformation.json
260260
.. _`etcd`: https://github.com/coreos/etcd
261261
.. _`etcd disaster recovery`: https://github.com/coreos/etcd/blob/master/Documentation/admin_guide.md#disaster-recovery
262262
.. _`PyYAML`: http://pyyaml.org/
263-
.. _`update_ec2_cluster.sh`: https://github.com/deis/deis/blob/master/contrib/ec2/update-ec2-cluster.sh
263+
.. _`update-aws-cluster.sh`: https://github.com/deis/deis/blob/master/contrib/aws/update-aws-cluster.sh
264264
.. _`More information about CloudFormation stack updates`: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html
265265
.. _`Proxy Protocol`: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-proxy-protocol.html

docs/managing_deis/configure-dns.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@
66
Configure DNS
77
=============
88

9+
<<<<<<< HEAD
910
For Deis clusters on Amazon Web Services, Azure, DigitalOcean, Google Compute Engine,
1011
Linode, OpenStack, or bare metal, :ref:`DNS records <dns_records>` must be created.
1112
The cluster runs multiple routers infront of the Deis controller and apps
1213
you deploy, so a :ref:`load balancer <configure-load-balancers>` is recommended.
14+
=======
15+
For Deis clusters on AWS, GCE, Azure, DigitalOcean, OpenStack, or bare metal,
16+
:ref:`DNS records <dns_records>` must be created. The cluster runs multiple routers in
17+
front of the Deis controller and apps you deploy, so a
18+
:ref:`load balancer <configure-load-balancers>` is recommended.
19+
>>>>>>> chore(contrib/ec2): rename ec2 to aws
1320

1421
Vagrant
1522
-------
@@ -36,7 +43,7 @@ apps will live under:
3643

3744
Apps can then be accessed by browsers at ``appname.myapps.com``, and the controller will be available to the Deis client at ``deis.myapps.com``.
3845

39-
`EC2 recommends`_ against creating "A" record entries; instead, create a wildcard "CNAME" record entry for the load balancer's DNS name, or use Amazon `Route 53`_.
46+
`AWS recommends`_ against creating "A" record entries; instead, create a wildcard "CNAME" record entry for the load balancer's DNS name, or use Amazon `Route 53`_.
4047

4148
These records are necessary for all deployments of Deis other than Vagrant clusters.
4249

@@ -52,8 +59,8 @@ An alternative to configuring your own DNS records is to use `xip`_ to reference
5259
5360
You would then create the cluster with ``10.21.12.2.xip.io`` as the cluster domain.
5461

55-
Note that xip does not seem to work for EC2 ELBs - you will have to use an actual DNS record.
62+
Note that xip does not seem to work for AWS ELBs - you will have to use an actual DNS record.
5663

57-
.. _`EC2 recommends`: https://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-domain-names-with-elb.html
64+
.. _`AWS recommends`: https://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-domain-names-with-elb.html
5865
.. _`Route 53`: http://aws.amazon.com/route53/
5966
.. _`xip`: http://xip.io/

0 commit comments

Comments
 (0)