Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit bc03487

Browse files
author
Paul Cornell
committed
Added new samples.
1 parent 7a53ce8 commit bc03487

72 files changed

Lines changed: 4331 additions & 930 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc_source/_find-environment.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
either express or implied. See the License for the specific language governing permissions and
99
limitations under the License.
1010

11-
If your |env| is not displayed in the console, try doing one or more of the following actions to try to display it:
11+
If your |env| is not displayed in the console, try doing one or more of the following actions to try to display it.
1212

13-
* In the side navigation bar, choose one or more of the following:
13+
* In the side navigation bar, choose one or more of the following.
1414

1515
* Choose :guilabel:`Your environments` to display all environments that your AWS entity owns within the selected AWS Region and AWS account.
1616
* Choose :guilabel:`Shared with you` to display all environments your AWS entity has been invited to within the selected AWS Region and AWS account.

doc_source/_includes.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,23 @@
8282
.. |memslongtitle| replace:: |envtitle| Members
8383
.. |memslong| replace:: |env| members
8484
.. |memstitle| replace:: Members
85-
.. |mems| replace:: members
85+
.. |mems| replace:: members
86+
87+
.. AWS Region IDs
88+
--------------
89+
.. |region-id-ap-northeast-1| replace:: ap-northeast-1
90+
.. |region-id-ap-northeast-2| replace:: ap-northeast-2
91+
.. |region-id-ap-northeast-3| replace:: ap-northeast-3
92+
.. |region-id-ap-south-1| replace:: ap-south-1
93+
.. |region-id-ap-southeast-1| replace:: ap-southeast-1
94+
.. |region-id-ap-southeast-2| replace:: ap-southeast-2
95+
.. |region-id-ca-central-1| replace:: ca-central-1
96+
.. |region-id-eu-central-1| replace:: eu-central-1
97+
.. |region-id-eu-west-1| replace:: eu-west-1
98+
.. |region-id-eu-west-2| replace:: eu-west-2
99+
.. |region-id-eu-west-3| replace:: eu-west-3
100+
.. |region-id-sa-east-1| replace:: sa-east-1
101+
.. |region-id-us-east-1| replace:: us-east-1
102+
.. |region-id-us-east-2| replace:: us-east-2
103+
.. |region-id-us-west-1| replace:: us-west-1
104+
.. |region-id-us-west-2| replace:: us-west-2

doc_source/ami-contents.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,27 @@ Amazon Machine Image (AMI) Contents for an |envfirstlongec2title|
2020

2121
The Amazon Machine Image (AMI) that |AC9long| uses for an |envec2| contains the following components:
2222

23-
* The packages listed in `Amazon Linux AMI 2017.09 Packages <https://aws.amazon.com/amazon-linux-ami/2017.09-packages/>`_ on the Amazon Linux AMI website.
23+
* The packages listed in `Amazon Linux AMI 2018.03 Packages <https://aws.amazon.com/amazon-linux-ami/2018-03-packages/>`_ on the Amazon Linux AMI website.
2424
* `Apache HTTP Server <http://httpd.apache.org/>`_ 2.4
25-
* :ref:`AWS CLI <sample-aws-cli>`
26-
* `AWS SAM Local <https://github.com/awslabs/aws-sam-local>`_
27-
* `CoffeeScript <http://coffeescript.org>`_
28-
* `Docker <https://www.docker.com/>`_ 17.03.2-ce
25+
* :ref:`AWS CLI <sample-aws-cli>` 1.14.9
26+
* `AWS SAM Local <https://github.com/awslabs/aws-sam-local>`_ 0.2.11
27+
* `CoffeeScript <http://coffeescript.org>`_ 2.3.1
28+
* `Docker <https://www.docker.com/>`_ 18.03.1-ce
2929
* `GCC, G++ <https://gcc.gnu.org/>`_ 4.8.5
3030
* `GDB <https://www.gnu.org/software/gdb/>`_ 7.6.1
31-
* `Git <https://git-scm.com/>`_ 2.13.6
31+
* `Git <https://git-scm.com/>`_ 2.14.4
3232
* `GNU libc <https://www.gnu.org/software/libc/>`_ 2.17
3333
* `Go <https://golang.org>`_ 1.9.1
3434
* `MySQL <https://dev.mysql.com/>`_ 14.14
3535
* `MySQL native driver for PHP <https://dev.mysql.com/downloads/connector/php-mysqlnd/>`_
36-
* `Node.js <https://nodejs.org/en/>`_ v6.11.4
36+
* `Node.js <https://nodejs.org/en/>`_ v6.14.3
3737
* `Node Package manager (npm) <https://www.npmjs.com/>`_ 3.10.10
3838
* `Node Version Manager (nvm) <http://nvm.sh/>`_ 0.31.7
39-
* `PHP <https://secure.php.net/>`_ 5.6.31
40-
* `Pylint <https://www.pylint.org/>`_ 1.7.4
41-
* `Python <https://www.python.org/>`_ 2.7.12
42-
* `Python <https://www.python.org/>`_ 3.6.2
43-
* `Ruby on Rails <http://rubyonrails.org/>`_ 5.1.4
39+
* `Perl <https://www.perl.org/>`_ v.5.16.3
40+
* `PHP <https://secure.php.net/>`_ 5.6.36
41+
* `Pylint <https://www.pylint.org/>`_ 1.8.1
42+
* `Python <https://www.python.org/>`_ 2.7.14
43+
* `Python <https://www.python.org/>`_ 3.6.5
44+
* `Ruby on Rails <http://rubyonrails.org/>`_ 5.2.0
4445
* `Ruby <https://www.ruby-lang.org/en/>`_ 2.4.1
45-
* `virtualenv <https://virtualenv.pypa.io/en/stable/>`_ 15.1.0
46+
* `virtualenv <https://virtualenv.pypa.io/en/stable/>`_ 16.0.0

doc_source/app-preview.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ and with the corresponding application code file open and active in the |AC9IDE|
118118

119119
This opens an application preview tab within the |env|, and then displays the application's output on the tab.
120120

121+
If the application preview tab displays an error or is blank, try following the troubleshooting steps in :ref:`troubleshooting-app-preview`.
122+
121123
To enable others to preview the running application outside of the |IDE|, see :ref:`app-preview-share`.
122124

123125
.. note:: If the application is not already running, you will see an error on the application preview tab. Run or restart the application, and then choose the menu bar command again.
@@ -127,7 +129,13 @@ To enable others to preview the running application outside of the |IDE|, see :r
127129
within the |env| works only with the preceding ports and IPs, and it works with only a single port at a time.
128130

129131
We don't recommend sharing the URL in the application preview tab with others. (The URL displays using the format
130-
:code:`https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/`.) This URL works only when the |IDE| for the |env| is open and the application is running in the same web browser.
132+
:code:`https://12a34567b8cd9012345ef67abcd890e1.vfs.cloud9.us-east-2.amazonaws.com/`, where :code:`12a34567b8cd9012345ef67abcd890e1` is the ID that |AC9| assigns to the |env|,
133+
and :code:`us-east-2` is the ID of the AWS Region for the |env|.) This URL works only when the |IDE| for the |env| is open and the application is running in the same web browser.
134+
135+
If you try to go to the IP of :code:`127.0.0.1`, :code:`localhost`, or :code:`0.0.0.0` by using the application preview tab
136+
in the |IDE| or in a separate web browser tab outside of the |IDE|,
137+
the default built-in behavior of the |AC9IDE| is that this will attempt to go to your local computer, instead of attempting to go the
138+
instance or your own server that is connected to the |env|.
131139

132140
.. _app-preview-app-reload:
133141

@@ -199,14 +207,14 @@ allow incoming application requests. Then you give the public IP address to othe
199207
200208
curl http://169.254.169.254/latest/meta-data/instance-id
201209
202-
The instance ID will look similar to this: :code:`i-02ccbdf54d66e34EX`. Make a note of this instance ID.
210+
The instance ID will look similar to this: :code:`i-12a3b456c789d0123`. Make a note of this instance ID.
203211

204212
* In the |IDE| for the |env|, on the menu bar, choose your user icon, and then choose :guilabel:`Manage EC2 Instance`.
205213

206214
.. image:: images/console-manage-instance.png
207215
:alt: Choosing to manage the instance from the AWS Cloud9 IDE
208216

209-
In the |EC2| console that displays, make a note of the instance ID that displays in the :guilabel:`Instance ID` column. The instance ID will look similar to this: :code:`i-02ccbdf54d66e34EX`.
217+
In the |EC2| console that displays, make a note of the instance ID that displays in the :guilabel:`Instance ID` column. The instance ID will look similar to this: :code:`i-12a3b456c789d0123`.
210218

211219
#. Get the |EC2| instance's public IP address. To get this, do one of the following:
212220

@@ -326,6 +334,8 @@ Step 5: Share the Running Application URL
326334
With the application running, give to others the public IP address you noted earlier. Be sure to start the URL with the correct protocol, and add the port number if it is
327335
not the default for that protocol (for example, :code:`http://192.0.2.0:8080/index.html` using HTTP over port 8080).
328336

337+
If the resulting web browser tab displays an error, or the tab is blank, try following the troubleshooting steps in :ref:`troubleshooting-app-sharing`.
338+
329339
.. note:: The instance's public IP address might change anytime the instance restarts. To prevent this IP address from changing, one solution is to allocate an Elastic IP address and then assign that address to the running instance. For instructions, see
330340
:ec2-user-guide:`Allocating an Elastic IP Address <elastic-ip-addresses-eip.html#using-instance-addressing-eips-allocating>` and
331341
:ec2-user-guide:`Associating an Elastic IP Address with a Running Instance <elastic-ip-addresses-eip.html#using-instance-addressing-eips-associating>` in the |EC2-ug|. Note also that
@@ -338,4 +348,5 @@ not the default for that protocol (for example, :code:`http://192.0.2.0:8080/ind
338348
port, those requests might fail. Those users must use a different network that allows traffic over the requested protocol and port. For more information, see your network administrator.
339349

340350
We don't recommend sharing the URL in the application preview tab in the |IDE| with others. (The URL displays using the format
341-
:code:`https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/`.) This URL works only when the |IDE| for the |env| is open and the application is running in the same web browser.
351+
:code:`https://12a34567b8cd9012345ef67abcd890e1.vfs.cloud9.us-east-2.amazonaws.com/`, where :code:`12a34567b8cd9012345ef67abcd890e1` is the ID that |AC9| assigns to the |env|,
352+
and :code:`us-east-2` is the ID of the AWS Region for the |env|.) This URL works only when the |IDE| for the |env| is open and the application is running in the same web browser.

doc_source/auth-and-access-control.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ The following AWS managed policies, which you can attach to |IAM| identities in
298298
{
299299
"Effect": "Allow",
300300
"Action": [
301-
"cloud9:CreateEnvironment*",
301+
"cloud9:CreateEnvironmentEC2",
302+
"cloud9:CreateEnvironmentSSH",
302303
"cloud9:GetUserPublicKey",
303304
"cloud9:GetUserSettings",
304305
"cloud9:UpdateUserSettings",

doc_source/browsers.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.. Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
3+
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0
4+
International License (the "License"). You may not use this file except in compliance with the
5+
License. A copy of the License is located at http://creativecommons.org/licenses/by-nc-sa/4.0/.
6+
7+
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
8+
either express or implied. See the License for the specific language governing permissions and
9+
limitations under the License.
10+
11+
.. _browsers:
12+
13+
############################
14+
Supported Browsers for |AC9|
15+
############################
16+
17+
.. meta::
18+
:description:
19+
Lists the supported browsers for AWS Cloud9.
20+
21+
The following table lists the supported browsers for |AC9|.
22+
23+
.. list-table::
24+
:widths: 1 1
25+
:header-rows: 1
26+
27+
* - **Browser**
28+
- **Versions**
29+
* - Google Chrome
30+
- Latest three versions
31+
* - Mozilla Firefox
32+
- Latest three versions
33+
* - Microsoft Edge
34+
- Latest three versions
35+
* - Apple Safari for macOS
36+
- Latest two versions

doc_source/build-run-debug.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ Change a Built-In Runner
162162

163163
#. On the menu bar, choose :guilabel:`Run, Run With`, and then choose the built-in runner you want to change.
164164
#. Stop the runner from trying to run your code by choosing, :guilabel:`Stop` on the run configuration tab that displays.
165-
#. Choose :guilabel:`Runner: RUNNER_NAME`, where :guilabel:`RUNNER_NAME` is the name of the runner you want to change, and then choose :guilabel:`Edit Runner`.
166-
#. On the :guilabel:`RUNNER_NAME.run` tab that is displayed, change the runner's current definition. See :ref:`build-run-debug-define-builder-runner`.
167-
#. Choose :guilabel:`File, Save As`. Save the file with the same name (:guilabel:`RUNNER_NAME.run`) in the :file:`ENVIRONMENT_NAME/.c9/runners` directory, where :file:`ENVIRONMENT_NAME` is
165+
#. Choose :guilabel:`Runner: My Runner`, where :guilabel:`My Runner` is the name of the runner you want to change, and then choose :guilabel:`Edit Runner`.
166+
#. On the :guilabel:`My Runner.run` tab that is displayed, change the runner's current definition. See :ref:`build-run-debug-define-builder-runner`.
167+
#. Choose :guilabel:`File, Save As`. Save the file with the same name (:guilabel:`My Runner.run`) in the :file:`my-environment/.c9/runners` directory, where :file:`my-environment` is
168168
the name of your |envfirst|.
169169

170170
.. note:: Any changes you make to a built-in runner apply only to the |env| you made those changes in. To apply your changes to a separate |env|,
@@ -202,8 +202,8 @@ Create a Builder or Runner
202202
that is displayed, define the builder or runner.
203203
See :ref:`build-run-debug-define-builder-runner`.
204204
#. After you define the builder or runner, choose :guilabel:`File, Save As`. For a builder, save the file with the :file:`.build` extension in the
205-
:file:`ENVIRONMENT_NAME/.c9/builders` directory, where :file:`ENVIRONMENT_NAME` is the name of your |env|. For a runner, save the file with the
206-
:file:`.run` file extension in the :file:`ENVIRONMENT_NAME/.c9/runners` directory, where :file:`ENVIRONMENT_NAME`
205+
:file:`my-environment/.c9/builders` directory, where :file:`my-environment` is the name of your |env|. For a runner, save the file with the
206+
:file:`.run` file extension in the :file:`my-environment/.c9/runnders` directory, where :file:`my-environment`
207207
is the name of your |env|.
208208
The file name you specify will be the name that is displayed on the :guilabel:`Run, Build System` menu (for a builder) or the
209209
:guilabel:`Run, Run With` menu (for a runner). Therefore, unless you specify a different file name,
@@ -247,7 +247,7 @@ For a runner, start with this code.
247247
"env": {},
248248
"selector": "",
249249
"debugger": "",
250-
"debugport": "PORT_NUMBER"
250+
"debugport": ""
251251
}
252252
253253
In the preceding code:

doc_source/change-environment.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ Change |envtitle| Preferences
4141
Change |envtitle| Settings with the Console
4242
===========================================
4343

44-
#. Open the |AC9| console, if it isn't already open, at |AC9Console_link|.
44+
#. Sign in to the |AC9| console, at |AC9Console_link|.
4545
#. In the top navigation bar, choose the AWS Region where the |env| is located.
4646

4747
.. image:: images/console-region.png
4848
:alt: AWS Region selector in the AWS Cloud9 console
4949

50-
#. In the list of environments, for the |env| whose settings you want to change, do one of the following:
50+
#. In the list of environments, for the |env| whose settings you want to change, do one of the following.
5151

5252
* Choose the title of the card for the |env|. Then choose :guilabel:`Edit` on the next page.
5353

@@ -61,23 +61,23 @@ Change |envtitle| Settings with the Console
6161

6262
#. Make your changes, and then choose :guilabel:`Save changes`.
6363

64-
You can use the |AC9| console to change the following settings:
64+
You can use the |AC9| console to change the following settings.
6565

6666
* For |envec2plural|, :guilabel:`Name` and :guilabel:`Description`.
6767
* For |envsshplural|: :guilabel:`Name`, :guilabel:`Description`, :guilabel:`User`, :guilabel:`Host`, :guilabel:`Port`,
6868
:guilabel:`Environment path`, :guilabel:`Node.js binary path`, and :guilabel:`SSH jump host`.
6969

70-
To change other settings, do the following:
70+
To change other settings, do the following.
7171

72-
* For |envec2plural|:
72+
* For |envec2plural|, do the following.
7373

7474
* You cannot change :guilabel:`Type`, :guilabel:`Security groups`, :guilabel:`VPC`, :guilabel:`Subnet`, :guilabel:`Environment path`, or :guilabel:`Environment ARN`.
7575
* For :guilabel:`Permissions` or :guilabel:`Number of members`, see :ref:`share-environment-change-access`,
7676
:ref:`Remove Your User <share-environment-change-access>`, :ref:`Invite an IAM User <share-environment-invite-user>`, and
7777
:ref:`share-environment-delete-member`.
7878
* For :guilabel:`EC2 instance type`, :guilabel:`Memory`, or :guilabel:`vCPU`, see :ref:`Moving or Resizing an Environment <move-environment>`.
7979

80-
* For |envsshplural|:
80+
* For |envsshplural|, do the following.
8181

8282
* You cannot change :guilabel:`Type` or :guilabel:`Environment ARN`.
8383
* For :guilabel:`Permissions` or :guilabel:`Number of members`, see :ref:`share-environment-change-access`,

doc_source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125

126126
extlinks['api-gateway-dev-guide'] = ('https://docs.aws.amazon.com/apigateway/latest/developerguide/%s', '')
127127
extlinks['aws-gen-ref'] = ('https://docs.aws.amazon.com/general/latest/gr/%s', '')
128+
extlinks['cfn-cli'] = ('https://docs.aws.amazon.com/cli/latest/reference/cloudformation/%s', '')
128129
extlinks['cli-user-guide'] = ('https://docs.aws.amazon.com/cli/latest/userguide/%s', '')
129130
extlinks['codecommit-user-guide'] = ('https://docs.aws.amazon.com/codecommit/latest/userguide/%s', '')
130131
extlinks['codepipeline-user-guide'] = ('https://docs.aws.amazon.com/codepipeline/latest/userguide/%s', '')
@@ -134,6 +135,7 @@
134135
extlinks['dynamodb-dev-guide'] = ('https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/%s', '')
135136
extlinks['ec2-user-guide'] = ('https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/%s', '')
136137
extlinks['iam-user-guide'] = ('https://docs.aws.amazon.com/IAM/latest/UserGuide/%s', '')
138+
extlinks['lam-cli'] = ('https://docs.aws.amazon.com/cli/latest/reference/lambda/%s', '')
137139
extlinks['lambda-dev-guide'] = ('https://docs.aws.amazon.com/lambda/latest/dg/%s', '')
138140
extlinks['lightsail-docs'] = ('https://lightsail.aws.amazon.com/ls/docs/%s', '')
139141
extlinks['s3-getting-started-guide'] = ('https://docs.aws.amazon.com/AmazonS3/latest/gsg/%s', '')

0 commit comments

Comments
 (0)