Skip to content

Commit

Permalink
Added data value to resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
hekonsek committed Sep 6, 2019
1 parent 4042432 commit bfafd2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,6 +1,6 @@
all: build

VERSION=0.0.0
VERSION=0.1.0

build:
GO111MODULE=on go build awsom-cloudformation-certificate.go
Expand Down
4 changes: 3 additions & 1 deletion awsom-cloudformation-certificate.go
Expand Up @@ -44,7 +44,9 @@ func certificateResource(ctx context.Context, event cfn.Event) (physicalResource
return
}
physicalResourceID = *certificateRequestOutput.CertificateArn
fmt.Println("Created certificate request.")
data = map[string]interface{}{"CertificateArn": *certificateRequestOutput.CertificateArn}
fmt.Printf("Generated resource data: %v\n", data)
fmt.Printf("Created certificate request with ARN: %s\n", *certificateRequestOutput.CertificateArn)

err = waitUntilCertificateHasValidationOptions(acmService, *certificateRequestOutput.CertificateArn)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -17,7 +17,7 @@ Certificate:

## Usage

The latest release of this resource can be found [here](s3://capsilon-awsom/awsom-cloudformation-certificate-0.0.0.zip).
The latest release of this resource can be found [here](s3://capsilon-awsom/awsom-cloudformation-certificate-0.1.1.zip).
I can't promise this hosting site will be available in the future, so I highly recommend to download the zip file and
host it in your own S3 bucket.

Expand Down Expand Up @@ -59,7 +59,7 @@ Resources:
Handler: awsom-cloudformation-certificate
Code:
S3Bucket: capsilon-awsom
S3Key: awsom-cloudformation-certificate-0.0.0.zip
S3Key: awsom-cloudformation-certificate-0.1.1.zip
Role: !Sub ${CloudFormationCertificateResourceRole.Arn}
Timeout: 360
Expand Down

0 comments on commit bfafd2b

Please sign in to comment.