Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update READMEs #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Fastly-Services-ActiveVersion/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Fastly::Services::Service

This resource type manages a [Fastly Service][3]
This resource type manages the active [Fastly Service Version][3]

[Documentation][4]

Expand Down Expand Up @@ -36,7 +36,7 @@ To get started:
```Bash
$ aws cloudformation set-type-configuration \
--region us-west-2 --type RESOURCE \
--type-name Fastly::Services::Backend \
--type-name Fastly::Services::ActiveVersion \
--configuration-alias default \
--configuration "{ \"FastlyAccess\":{\"Token\":\"YOURTOKEN\"}}"
```
Expand Down Expand Up @@ -77,12 +77,13 @@ The Fastly CloudFormation resources are available on the CloudFormation Public R
```yaml
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Shows how to create a Service in Fastly
Description: Shows how to set which Service Version is active in Fastly
Resources:
MySampleProject:
Type: Fastly::Services::Service
Type: Fastly::Services::ActiveVersion
Properties:
Name: Example Service Name
ServiceId: String
VersionNumber: Integer
```
# Development

Expand Down Expand Up @@ -126,7 +127,7 @@ Keep in mind, during runtime all logs will be delivered to CloudWatch if you use

[1]: https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html
[2]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html
[3]: https://docs.fastly.com/en/guides/working-with-services#creating-a-new-service
[3]: https://docs.fastly.com/en/guides/working-with-services#understanding-fastly-services-and-versions
[4]: ./docs/README.md
[11]: https://aws.amazon.com/console/
[12]: https://console.aws.amazon.com/cloudformation/home
Expand Down
21 changes: 10 additions & 11 deletions Fastly-Services-Version/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Fastly::Services::Service
# Fastly::Services::Version

This resource type manages a [Fastly Service][3]
This resource type manages a [Fastly Service Version][3]

[Documentation][4]

Expand Down Expand Up @@ -36,7 +36,7 @@ To get started:
```Bash
$ aws cloudformation set-type-configuration \
--region us-west-2 --type RESOURCE \
--type-name Fastly::Services::Backend \
--type-name Fastly::Services::Version \
--configuration-alias default \
--configuration "{ \"FastlyAccess\":{\"Token\":\"YOURTOKEN\"}}"
```
Expand Down Expand Up @@ -75,23 +75,22 @@ The Fastly CloudFormation resources are available on the CloudFormation Public R

### Shows how to create a Service in Fastly
```yaml
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Shows how to create a Service in Fastly
Description: Shows how to create a Service Version in Fastly
Resources:
MySampleProject:
Type: Fastly::Services::Service
Type: Fastly::Services::Version
Properties:
Name: Example Service Name
ServiceId: String
```
# Development

Congratulations on starting development! Next steps:

1. Write the JSON schema describing your resource, [fastly-services-service.json](./fastly-services-service.json)
2. Implement your resource handlers in [handlers.ts](./fastly-services-service/handlers.ts)
1. Write the JSON schema describing your resource, [fastly-services-service.json](./fastly-services-version.json)
2. Implement your resource handlers in [handlers.ts](./fastly-services-version/handlers.ts)

> Don't modify [models.ts](./fastly-services-service/models.ts) by hand, any modifications will be overwritten when the `generate` or `package` commands are run.
> Don't modify [models.ts](./fastly-services-version/models.ts) by hand, any modifications will be overwritten when the `generate` or `package` commands are run.

Implement CloudFormation resource here. Each function must always return a ProgressEvent.

Expand Down Expand Up @@ -126,7 +125,7 @@ Keep in mind, during runtime all logs will be delivered to CloudWatch if you use

[1]: https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html
[2]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html
[3]: https://docs.fastly.com/en/guides/working-with-services#creating-a-new-service
[3]: https://docs.fastly.com/en/guides/working-with-services#understanding-fastly-services-and-versions
[4]: ./docs/README.md
[11]: https://aws.amazon.com/console/
[12]: https://console.aws.amazon.com/cloudformation/home
Expand Down