Skip to content

Commit dc3d50b

Browse files
author
RJ Lohan
authored
Release readme update (#204)
1 parent f56a2af commit dc3d50b

File tree

3 files changed

+87
-14
lines changed

3 files changed

+87
-14
lines changed

README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
11
## AWS CloudFormation Resource Provider Java Plugin
22

3+
The CloudFormation CLI (cfn) allows you to author your own resource providers that can be used by CloudFormation.
34

4-
The CloudFormation Resource Provider Development Kit (RPDK) allows you to author your own resource providers that can be used by CloudFormation.
5+
This plugin library helps to provide Java runtime bindings for the execution of your providers by CloudFormation.
56

6-
This plugin library helps to provide runtime bindings for the execution of your providers by CloudFormation.
7+
Usage
8+
-----
9+
10+
If you are using this package to build resource providers for CloudFormation, install the (CloudFormation CLI)[https://github.com/aws-cloudformation/aws-cloudformation-rpdk] and the (CloudFormation CLI Java Plugin)[https://github.com/aws-cloudformation/aws-cloudformation-rpdk-java-plugin]
11+
12+
```
13+
pip install cloudformation-cli
14+
pip install cloudformation-cli-java-plugin
15+
```
16+
17+
Refer to the documentation for the [CloudFormation CLI](https://github.com/aws-cloudformation/aws-cloudformation-rpdk) for usage instructions.
718

819
Development
920
-----------
1021

11-
For changes to the plugin, a Python virtual environment is recommended. You also need to download `aws-cloudformation-rpdk` and install it first, as it isn't currently available on PyPI, but is a required dependency:
22+
First, you will need to install the (CloudFormation CLI)[https://github.com/aws-cloudformation/aws-cloudformation-rpdk], as it is a required dependency:
23+
24+
```
25+
pip install cloudformation-cli
26+
```
27+
28+
For changes to the plugin, a Python virtual environment is recommended.
1229

1330
```
1431
python3 -m venv env
1532
source env/bin/activate
16-
# assuming aws-cloudformation-rpdk has already been cloned/downloaded
17-
pip install \
18-
-e ../aws-cloudformation-rpdk \
19-
-r ../aws-cloudformation-rpdk/requirements.txt \
20-
-e .
33+
# assuming cloudformation-cli has already been cloned/downloaded
34+
pip install -e .
2135
pre-commit install
2236
```
2337

README.rst

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
AWS CloudFormation Resource Provider Java Plugin
2+
================================================
3+
4+
The CloudFormation CLI (cfn) allows you to author your own resource
5+
providers that can be used by CloudFormation.
6+
7+
This plugin library helps to provide Java runtime bindings for the
8+
execution of your providers by CloudFormation.
9+
10+
Usage
11+
-----
12+
13+
If you are using this package to build resource providers for
14+
CloudFormation, install the (CloudFormation
15+
CLI)[https://github.com/aws-cloudformation/aws-cloudformation-rpdk] and
16+
the (CloudFormation CLI Java
17+
Plugin)[https://github.com/aws-cloudformation/aws-cloudformation-rpdk-java-plugin]
18+
19+
.. code-block:: bash
20+
21+
pip install cloudformation-cli
22+
pip install cloudformation-cli-java-plugin
23+
24+
Refer to the documentation for the `CloudFormation CLI`_ for usage
25+
instructions.
26+
27+
Development
28+
-----------
29+
30+
First, you will need to install the (CloudFormation
31+
CLI)[https://github.com/aws-cloudformation/aws-cloudformation-rpdk], as
32+
it is a required dependency:
33+
34+
.. code-block:: bash
35+
36+
pip install cloudformation-cli
37+
38+
For changes to the plugin, a Python virtual environment is recommended.
39+
40+
.. code-block:: bash
41+
42+
python3 -m venv env
43+
source env/bin/activate
44+
# assuming cloudformation-cli has already been cloned/downloaded
45+
pip install -e .
46+
pre-commit install
47+
48+
Linting and running unit tests is done via `pre-commit`_, and so is
49+
performed automatically on commit. The continuous integration also runs
50+
these checks. Manual options are available so you don't have to commit):
51+
52+
.. code-block:: bash
53+
54+
# run all hooks on all files, mirrors what the CI runs
55+
pre-commit run --all-files
56+
# run unit tests only. can also be used for other hooks, e.g. black, flake8, pylint-local
57+
pre-commit run pytest-local
58+
59+
License
60+
-------
61+
62+
This library is licensed under the Apache 2.0 License.
63+
64+
.. _CloudFormation CLI: https://github.com/aws-cloudformation/aws-cloudformation-rpdk
65+
.. _pre-commit: https://pre-commit.com/

buildspec.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ phases:
1717
- cd "$WD"
1818
build:
1919
commands:
20-
# install aws-cloudformation-resource-schema
21-
- cd "$CODEBUILD_SRC_DIR_SCHEMA"
22-
- >
23-
mvn verify org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install
24-
--batch-mode
25-
--no-transfer-progress
2620
# install aws-cloudformation-rpdk-java-plugin and rpdk core
2721
- cd "$CODEBUILD_SRC_DIR"
2822
- >

0 commit comments

Comments
 (0)