-
Notifications
You must be signed in to change notification settings - Fork 18
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
Extract 'aws-infra' types into their own package independent of cloud-aws #472
Merged
Merged
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0bcf439
move files.
acb7bf2
Update ignore file.
82cc3ce
Get things working in their own package.
ab8ba86
Update aws to use aws-infra.
f8c6498
No tests.
9e36ac5
Fix test.
e281c4d
Update scripts.
1b61853
Update tests
1e7458d
Merge remote-tracking branch 'origin/master' into awsInfra
4c29e1a
remove linking.
f946141
Add dep.
5c2c81f
Fix lock file.
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
**/bin/ | ||
**/node_modules/ | ||
vendor/ | ||
**/Pulumi.*.yaml | ||
**/Pulumi.*.yaml | ||
**/yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PROJECT_NAME := Pulumi AWS Infrastructure | ||
NODE_MODULE_NAME := @pulumi/aws-infra | ||
include ../build/common.mk | ||
|
||
VERSION := $(shell ../scripts/get-version) | ||
|
||
export PATH := $(shell yarn bin 2>/dev/null):$(PATH) | ||
|
||
TESTPARALLELISM := 10 | ||
|
||
build:: | ||
yarn install | ||
yarn link @pulumi/pulumi @pulumi/aws | ||
tsc | ||
sed -e 's/\$${VERSION}/$(VERSION)/g' < package.json > bin/package.json | ||
cp ../README.md ../LICENSE bin/ | ||
|
||
lint:: | ||
tslint -c ../tslint.json -p tsconfig.json | ||
|
||
test_all:: |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "@pulumi/aws-infra", | ||
"version": "${VERSION}", | ||
"description": "Pulumi Amazon Web Services (AWS) infrastructure components.", | ||
"keywords": [ | ||
"pulumi", | ||
"cloud", | ||
"aws" | ||
], | ||
"homepage": "https://pulumi.io/cloud-aws", | ||
"repository": "https://github.com/pulumi/pulumi-cloud", | ||
"dependencies": { | ||
"mime": "^2.0.3", | ||
"semver": "^5.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/aws-sdk": "^2.7.0", | ||
"@types/node": "^8.0.26", | ||
"@types/mime": "^2.0.0", | ||
"@types/semver": "^5.4.0", | ||
"tslint": "^5.7.0", | ||
"typescript": "^2.6.2" | ||
}, | ||
"peerDependencies": { | ||
"@pulumi/aws": "^0.11.1-dev-1523150138-g0d75d81", | ||
"@pulumi/pulumi": "^0.11.1-dev-1523390330-g479a2e6a" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "bin", | ||
"target": "es6", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"stripInternal": true, | ||
"experimentalDecorators": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"strictNullChecks": true | ||
}, | ||
"files": [ | ||
"index.ts", | ||
"aws.ts", | ||
"cluster.ts", | ||
"network.ts", | ||
"utils.ts", | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2016-2017, Pulumi Corporation. All rights reserved. | ||
|
||
import * as crypto from "crypto"; | ||
|
||
// sha1hash returns a partial SHA1 hash of the input string. | ||
export function sha1hash(s: string): string { | ||
const shasum: crypto.Hash = crypto.createHash("sha1"); | ||
shasum.update(s); | ||
// TODO[pulumi/pulumi#377] Workaround for issue with long names not generating per-deplioyment randomness, leading | ||
// to collisions. For now, limit the size of hashes to ensure we generate shorter/ resource names. | ||
return shasum.digest("hex").substring(0, 8); | ||
} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code was copied. but it's so simple i don't mind that.