Skip to content

Commit 11a33d2

Browse files
committed
fixes for a few code-blocks in topics
1 parent 5d9184f commit 11a33d2

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

doc_source/credentials.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ configurable fields in that profile as key/value pairs. You can have multiple pr
120120
credentials file, which can be added or edited using :code:`aws configure --profile {PROFILE_NAME}`
121121
to select the profile to configure.
122122

123-
You can also specify additional fields, such as :code:`aws_session_token`,
123+
You can specify additional fields, such as :code:`aws_session_token`,
124124
:code:`metadata_service_timeout` and :code:`metadata_service_num_attempts`. These are not
125125
configurable with the CLI |mdash| you must edit the file by hand if you wish to use them. For more
126-
information about the configuration file and its available fields, see the AWS CLI Reference.
126+
information about the configuration file and its available fields, see :cli-ug:`Configuring the AWS
127+
Command Line Interface <cli-chap-getting-started>`_ in the |cli-ug|.
127128
128129
129130
Loading Credentials

doc_source/java-dg-install-sdk.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You may not need (or want) to install the SDK if you use any of the following:
1818
which will automatically download, install and update the Java SDK for you. For more information
1919
and setup instructions, see the |tke-ug|_.
2020

21-
* **Apache Maven** |ndash| If you use `Apache Maven <Maven>`_, you can specify the entire SDK (or
21+
* **Apache Maven** |ndash| If you use `Apache Maven <maven>`_, you can specify the entire SDK (or
2222
specific SDK components) as dependencies in your project. See :doc:`java-dg-using-maven` for
2323
details about how to set up the SDK when using Maven.
2424

doc_source/java-dg-roles.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public DNS name of your instance, select it in the |EC2| console, and then look
175175
:guilabel:`Public DNS` in the :guilabel:`Description` tab (for example,
176176
ec2-198-51-100-1.compute-1.amazonaws.com).
177177

178-
.. code-block:: java
178+
.. code-block:: sh
179179
180180
scp -p -i {my-key-pair}.pem GetS3Object.class ec2-user@{public_dns}:GetS3Object.class
181181
scp -p -i {my-key-pair}.pem build.xml ec2-user@{public_dns}:build.xml
@@ -193,9 +193,9 @@ The :code:`-p` switch indicates that :literal:`scp` should preserve the permissi
193193
files when it copies them to the destination. If you are copying the files from Windows, you might
194194
need to fix the permissions on your instance using the following command:
195195

196-
.. code-block:: java
196+
.. code-block:: sh
197197
198-
:userinput:`chmod -R u+rwx GetS3Object.class build.xml lib third-party`
198+
chmod -R u+rwx GetS3Object.class build.xml lib third-party
199199
200200
201201
.. _java-dg-run-the-program:
@@ -209,15 +209,15 @@ Linux Instance <AccessingInstances>` in the |EC2-ug|.
209209
If ant is not installed on your instance, you can install it using the `yum
210210
<http://yum.baseurl.org/>`_ installer as follows:
211211

212-
.. code-block:: java
212+
.. code-block:: sh
213213
214-
:userinput:`sudo yum install ant`
214+
sudo yum install ant
215215
216216
Run the program using :code:`ant` as follows:
217217

218-
.. code-block:: java
218+
.. code-block:: sh
219219
220-
:userinput:`ant getS3Object`
220+
ant getS3Object
221221
222222
The program should write the contents of your |S3| object to your command window.
223223

doc_source/use-sha256.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ using AWS' new SHA256 certificates into your environment.
116116

117117
4. Import the root certificate using the following command:
118118

119-
.. code-block:: java
119+
.. code-block:: sh
120120
121121
keytool -keystore cacerts -storepass changeit -importcert -alias verisignclass3g5ca \
122122
-file path/to/certpemfile
@@ -131,7 +131,7 @@ using AWS' new SHA256 certificates into your environment.
131131
5. Verify the root certificate that you've installed. From within your
132132
:code:`$JAVA_HOME/jre/lib/security` directory, type the following command:
133133

134-
.. code-block:: java
134+
.. code-block:: sh
135135
136136
keytool -keystore cacerts -storepass changeit -list -v|grep -A8 -B6 \
137137
-i 18dad19e267de8bb4a2158cdcc6b3b4a

0 commit comments

Comments
 (0)