Skip to content

Commit 0fc6dbc

Browse files
committed
contributing
1 parent 62e5a53 commit 0fc6dbc

6 files changed

Lines changed: 42 additions & 152 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
9-
10-
### Added
11-
- Initial project structure
12-
- Tutorial generation capabilities
13-
- Content enhancement utilities
14-
- Documentation analysis tools
15-
- Integration with AWS services
16-
17-
### Changed
18-
- N/A
19-
20-
### Fixed
21-
- N/A
22-
23-
## [0.1.0] - 2025-07-16
8+
## [1.0.0] - 2025-08-01
249

2510
### Added
2611
- Initial release
27-
- Basic project structure
28-
- Documentation templates
12+
- Genai instructions
2913
- Example tutorials
30-
31-
[Unreleased]: https://github.com/aws/developer-tutorials/compare/v0.1.0...HEAD
32-
[0.1.0]: https://github.com/aws/developer-tutorials/releases/tag/v0.1.0

CONTRIBUTING.md

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,10 @@
11
# Contributing to Developer Tutorials
22

3-
Thank you for your interest in contributing to Developer Tutorials! We greatly value feedback and contributions from our community.
3+
Thank you for your interest in contributing to Developer Tutorials! We greatly value feedback and contributions from our community. Please open issues and pull requests for errors encountered using this content.
44

5-
## Reporting Issues
5+
If you have suggestions for improving the tutorial generation instructions, you can submit them as pull requests or issues in the repository. Please also submit bugs for cases where Q CLI did not generate a working script after several revisions, or when a published script or tutorial has an error.
66

7-
If you find a bug or have a suggestion for improving the Developer Tutorials, please open an issue in our GitHub repository. When filing an issue, please include:
8-
9-
- A clear description of the issue or suggestion
10-
- Steps to reproduce the issue
11-
- Expected behavior
12-
- Actual behavior
13-
- Any relevant logs or error messages
14-
- Your environment (OS, Python version, etc.)
15-
16-
## Contributing Code
17-
18-
We welcome code contributions through pull requests. Here's how to get started:
19-
20-
1. Fork the repository
21-
2. Create a new branch for your feature or bug fix
22-
3. Make your changes
23-
4. Add or update tests as necessary
24-
5. Run the test suite to ensure all tests pass
25-
6. Commit your changes with clear, descriptive commit messages
26-
7. Push your branch to your fork
27-
8. Open a pull request against the main repository
28-
29-
## Development Setup
30-
31-
To set up your development environment:
32-
33-
```bash
34-
# Clone the repository
35-
git clone https://github.com/aws-samples/sample-developer-tutorials.git
36-
37-
# Navigate to the project directory
38-
cd sample-developer-tutorials
39-
```
40-
41-
## Generating tutorials
42-
43-
Follow the instructions in [instra/README.md](instra/README.md)
44-
45-
## Testing
46-
47-
All new scripts and tutorials need to be tested by the author. Attach a log from a successful test run to the pull request.
48-
49-
## Cleanup
50-
51-
The tool generates a lot of artifacts including intermediate script revisions that generate errors. Submit a pull request with only the final revision of the script and tutorial. Rename these after the use case follow this convention.
52-
53-
```
54-
├── 001-lightsail-gs
55-
│   ├── README.md
56-
│   ├── lightsail-gs.md
57-
│   └── lightsail-gs.sh
58-
```
59-
60-
## Documentation
61-
62-
Add a readme for your contribution that describes its use case.
7+
To contribute new tutorials, see [instra/README.md](instra/README.md)
638

649
## Code of Conduct
6510

README.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -56,43 +56,19 @@ You can use Amazon Q Developer CLI to generate new scripts based on:
5656
1. **Existing scripts**: Use an existing script as a template
5757
2. **Documentation topics**: Generate a script from AWS documentation
5858

59-
### Using existing scripts as templates
59+
To adapt an existing script for your requirements, use a prompt such as the following.
6060

6161
```bash
62-
# Example: Generate a script for IPAM setup using an existing script
6362
q "Generate a script to set up IPAM for my VPC. Use the following script as an example: 009-vpc-ipam-gs.sh"
6463
```
6564

66-
### Generating from documentation
67-
68-
```bash
69-
# Example: Generate a script from AWS Payment Cryptography documentation
70-
q "read the instructions in the ../../instra/tutorial-gen folder and follow them in order, using this topic: https://docs.aws.amazon.com/payment-cryptography/latest/userguide/getting-started.html when instructed to run the script in step 2b, it's ok to actually run the script and create resources. this is part of the process. when you generate the script, be careful to check required options and option names for each command."
71-
```
72-
73-
## Prerequisites
74-
75-
- AWS CLI installed and configured with appropriate credentials
76-
- Bash shell environment
77-
- Appropriate AWS permissions for the services used in each script
65+
To generate a script and tutorial based on AWS Documentation content, see [instra/README.md](instra/README.md)
7866

7967
## Contributing
8068

69+
See [CONTRIBUTING](CONTRIBUTING)
8170
We welcome contributions to expand the collection of tutorials and scripts. To contribute:
8271

83-
1. **Create a new folder** in the `/tuts` directory following the naming convention: `XXX-service-usecase`
84-
2. **Follow the tutorial generation instructions** in the `/instra/tutorial-gen` folder
85-
3. **Submit only the final tutorial and script files** after testing and validation
86-
87-
### Folder structure for new contributions
88-
89-
```
90-
/tuts/XXX-service-usecase/
91-
├── XXX-service-usecase-script.sh # The executable script
92-
├── XXX-service-usecase-tutorial.md # The tutorial documentation
93-
└── XXX-service-usecase-README.md # Brief description of the use case
94-
```
95-
9672
## Cleanup
9773

9874
All scripts include resource tracking and cleanup functionality. After provisioning and interacting with resources, the scripts provide a list of resources and ask if you want to clean them up. If a script encounters an issue, it attempts to clean up resources that it created before the error.

SUPPORT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Refer to the documentation in the [README.md](README.md) file for basic usage in
88

99
## Issues
1010

11-
If you encounter a bug or have a feature request, please submit an issue through our [GitHub issue tracker](https://github.com/aws/developer-tutorials/issues).
11+
If you encounter a bug or have a feature request, please submit an issue through our [GitHub issue tracker](https://github.com/aws-samples/sample-developer-tutorials/issues).
1212

1313
When filing an issue, please include:
1414
- A clear description of the problem
@@ -21,7 +21,7 @@ When filing an issue, please include:
2121
## Community Support
2222

2323
For general questions and discussions:
24-
- Join our [GitHub Discussions](https://github.com/aws/developer-tutorials/discussions)
24+
- Join our [GitHub Discussions](https://github.com/aws-samples/sample-developer-tutorials/discussions)
2525
- Ask questions on [Stack Overflow](https://stackoverflow.com/) using the tag `developer-tutorials`
2626

2727
## Contact

instra/README.md

Lines changed: 31 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,51 @@
1-
# AWS Developer Tutorials - Instructions
1+
# Instructions
22

3-
This directory contains instructions and resources for generating new AWS CLI tutorials and scripts.
3+
You can use the instructions in this folder to generate new scripts and tutorials for the AWS CLI based on existing content. The instructions use existing AWS Documentation and CLI examples to generate working scripts for the AWS CLI, even if there isn't a specific example for your use case.
44

5-
## Overview
5+
Choose a use case or scenario for one or more services. Find an existing documentation topic for the use case. The content doesn't need to reference the AWS CLI directly, but it helps if you have CLI examples in the AWS CLI GitHub repository.
66

7-
The instructions in this directory guide you through the process of creating high-quality AWS CLI tutorials and scripts using Amazon Q Developer CLI. These instructions are designed to help you:
7+
## Prerequisites
88

9-
1. Collect information about AWS services and use cases
10-
2. Generate working AWS CLI scripts
11-
3. Create comprehensive tutorials that explain the scripts
12-
4. Validate and improve both scripts and tutorials
9+
To generate tutorials, you need the following tools.
1310

14-
## Directory Structure
11+
- The [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html)
12+
- The [Q CLI](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line.html)
13+
- The [AWS Docs MCP server](https://awslabs.github.io/mcp/servers/aws-documentation-mcp-server/)
14+
- The [AWS CLI GitHub repository](https://github.com/aws/aws-cli/tree/develop/awscli)
1515

16-
- `/tutorial-gen`: Step-by-step instructions for generating tutorials and scripts
16+
The AWS CLI repo has examples for AWS CLI commands. The instructions direct Q to find these in the repo in your user directory. If you clone the repo somewhere else, indicate this in the prompt.
1717

18-
## Tutorial Generation Process
18+
## Create a folder
1919

20-
The tutorial generation process is divided into several steps, each with its own instruction file in the `/tutorial-gen` directory:
20+
Create a new folder in the [tuts](../tuts) directory for your use case, following the naming convention.
2121

22-
1. **Information Collection**
23-
- Collect documentation topics
24-
- Gather example CLI commands
22+
```
23+
001-lightsail-gs
24+
002-vpc-gs
25+
```
2526

26-
2. **Script Creation**
27-
- Generate an initial script
28-
- Test and run the script
29-
- Validate script functionality
30-
- Simplify and improve the script
27+
Use the next available number after the highest number in use. Indicate the service name or names and the use case in the folder name. You can use `gs` for getting started use cases.
3128

32-
3. **Tutorial Creation**
33-
- Draft a tutorial based on the script
34-
- Validate tutorial content
29+
## Prompt
3530

36-
4. **Finalization**
37-
- Address feedback
38-
- Make final improvements
31+
Open Q chat in the new folder. Pass the URL to an existing topic with some additional instructions
3932

40-
## Using These Instructions
33+
> read the instructions in the ../../instra/tutorial-gen folder and follow them in order, using this topic: https://docs.aws.amazon.com/payment-cryptography/latest/userguide/getting-started.html when instructed to run the script in step 2b, it's ok to actually run the script and create resources. this is part of the process. when you generate the script, be careful to check required options and option names for each command."
4134
42-
To generate a new tutorial:
35+
Q tends to not run the script unless you specify this in the prompt. Q processes the instructions in order to generate a script, test it, simplify it, and generate and revise a tutorial. The process can take 20-40 minutes depending on the available documentation and examples.
4336

44-
1. Start with the file `0-general-instructions.md` in the `/tutorial-gen` directory
45-
2. Follow the numbered instruction files in sequence
46-
3. Use Amazon Q Developer CLI to assist with each step
47-
4. Place the final tutorial and script in a new folder in the `/tuts` directory
37+
## Pull requests
4838

49-
## Example Usage with Amazon Q Developer CLI
39+
The tool generates a lot of artifacts including intermediate script revisions that generate errors. Submit a pull request with only the final revision of the script and tutorial. Rename these after the use case follow this convention.
40+
torial. Rename these after the use case follow this convention.
5041

51-
```bash
52-
q "read the instructions in the ../../instra/tutorial-gen folder and follow them in order, using this topic: https://docs.aws.amazon.com/payment-cryptography/latest/userguide/getting-started.html when instructed to run the script in step 2b, it's ok to actually run the script and create resources. this is part of the process. when you generate the script, be careful to check required options and option names for each command."
42+
```
43+
├── 001-lightsail-gs
44+
│   ├── README.md
45+
│   ├── lightsail-gs.md
46+
│   └── lightsail-gs.sh
5347
```
5448

55-
This command instructs Amazon Q Developer CLI to:
56-
1. Read the tutorial generation instructions
57-
2. Follow them in order
58-
3. Use the AWS Payment Cryptography getting started guide as the source material
59-
4. Generate and test a script for this service
60-
61-
## Contributing
49+
## Testing
6250

63-
If you have suggestions for improving the tutorial generation process, please submit them as pull requests or issues in the repository.
51+
All new scripts and tutorials need to be tested by the author. Attach a log from a successful test run to the pull request.

tuts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ To use a tutorial:
3535

3636
## Contributing
3737

38-
To contribute a new tutorial, please follow the instructions in the `/instra/tutorial-gen` folder.
38+
To create a new tutorial, [instra/README.md](../instra/README.md).

0 commit comments

Comments
 (0)