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

Just provisioned this with CDK, not sure how to update your documentation #79

Open
fusion27 opened this issue Dec 12, 2022 · 0 comments

Comments

@fusion27
Copy link

fusion27 commented Dec 12, 2022

Wasn't sure how to issue you a README.md PR. Provisioned this with AWS CDK v2 using TypeScript

import * as cdk from 'aws-cdk-lib';
import { aws_sam, aws_iam } from 'aws-cdk-lib';

new aws_iam.Role(scope, `ServiceRoleNewRelicLogIngestionLambda`, {
  assumedBy: new aws_iam.ServicePrincipal(`lambda.amazonaws.com`),
  roleName: `NewRelicLogIngestionRole`,
  managedPolicies: [
    aws_iam.ManagedPolicy.fromAwsManagedPolicyName(`service-role/AWSLambdaBasicExecutionRole`),
  ],
})

const samApp:aws_sam.CfnApplication = new aws_sam.CfnApplication(scope,`LambdaNewRelicLogIngestion`, {
  location: {
    applicationId   : `arn:aws:serverlessrepo:us-east-1:463657938898:applications/NewRelic-log-ingestion`,
    semanticVersion : `2.6.4`
  },
  parameters: {
    `DebugLoggingEnabled`               : `False`,
    `FunctionRole`                      : `NewRelicLogIngestionRole`,
    `LogIngestionFunctionArnExportName` : 'LogIngestionFunctionArn',
    `MemorySize`                        : `128`,
    `NRInfraLogging`                    : `True`,
    `NRLicenseKey`                      : `1a2b3c4d5e6f7g8h9i10j11k12l13m14no15p16q`,
    `NRLoggingEnabled`                  : `True`,
    `Timeout`                           : `30`
  }
})
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

No branches or pull requests

1 participant