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

Add files #1

Merged
merged 15 commits into from
Jan 30, 2018
Merged

Add files #1

merged 15 commits into from
Jan 30, 2018

Conversation

RaeesBhatti
Copy link
Contributor

No description provided.

mthenw
mthenw previously requested changes Jan 29, 2018
@@ -0,0 +1,318 @@
'use strict';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove all code that is not needed for us.

src/index.js Outdated
{
"Effect": "Allow",
"Action": [
"iam:GetGroupPolicy",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need lambda:InvokeFunction only

src/index.js Outdated

addUserDefinition() {
_.merge(this.serverless.service.provider.compiledCloudFormationTemplate.Resources, {
"CustomCentralUser": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call it EventGatewayUser

src/index.js Outdated
"CustomCentralUser": {
"Type": "AWS::IAM::User"
},
"CustomPolicy": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call it EventGatewayUserPolicy

src/index.js Outdated
"Type": "AWS::IAM::User"
},
"CustomPolicy": {
"Type": "AWS::IAM::ManagedPolicy",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I don't think that managed policy will work. Can you verify this?

src/index.js Outdated
]
}
},
"CustomUserKeys": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call it EventGatewayUserKeys

src/index.js Outdated
})

_.merge(this.serverless.service.provider.compiledCloudFormationTemplate.Outputs, {
"AccessKey": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call it EventGatewayUserAccessKey

src/index.js Outdated
},
"Description": "Access Key ID of Custom User"
},
"SecretKey": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EventGatewayUserSecretKey

src/naming.js Outdated
@@ -0,0 +1,28 @@
'use strict';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably don't need this file

@RaeesBhatti RaeesBhatti dismissed mthenw’s stale review January 29, 2018 19:10

Updated according to the requirements

Copy link
Contributor

@mthenw mthenw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Please don't add more commits here other than those addressing my comments.

Let's create separate PR for subscription creation.

@@ -0,0 +1,80 @@
service: service-test-alerts-plugin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why alerts?

can we remove unnecessary stuff here so it will be easier to understand?

addUserDefinition() {
_.merge(this.serverless.service.provider.compiledCloudFormationTemplate.Resources, {
"EventGatewayUser": {
"Type": "AWS::IAM::User"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use User's Policies fields here instead of ManagedPolicy below.

src/index.js Outdated
}

compile() {
const config = this.getConfig();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we don't need this right now, let's remove it

@mthenw mthenw merged commit 5dc1dc1 into master Jan 30, 2018
@mthenw mthenw deleted the addFiles branch February 19, 2018 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants