Beispiel #1
0
 public MyStack()
 {
     var example = new Aws.Glue.Job("example", new Aws.Glue.JobArgs
     {
         Command = new Aws.Glue.Inputs.JobCommandArgs
         {
             ScriptLocation = $"s3://{aws_s3_bucket.Example.Bucket}/example.py",
         },
         RoleArn = aws_iam_role.Example.Arn,
     });
 }
Beispiel #2
0
 public MyStack()
 {
     var example = new Aws.Glue.Job("example", new Aws.Glue.JobArgs
     {
         Command = new Aws.Glue.Inputs.JobCommandArgs
         {
             ScriptLocation = $"s3://{aws_s3_bucket.Example.Bucket}/example.scala",
         },
         DefaultArguments =
         {
             { "--job-language", "scala" },
         },
         RoleArn = aws_iam_role.Example.Arn,
     });
 }
Beispiel #3
0
 public MyStack()
 {
     var exampleLogGroup = new Aws.CloudWatch.LogGroup("exampleLogGroup", new Aws.CloudWatch.LogGroupArgs
     {
         RetentionInDays = 14,
     });
     var exampleJob = new Aws.Glue.Job("exampleJob", new Aws.Glue.JobArgs
     {
         DefaultArguments =
         {
             { "--continuous-log-logGroup",          exampleLogGroup.Name },
             { "--enable-continuous-cloudwatch-log", "true"               },
             { "--enable-continuous-log-filter",     "true"               },
             { "--enable-metrics",                   ""                   },
         },
     });
 }