github.com/jpreese/tflint@v0.19.2-0.20200908152133-b01686250fb6/rules/awsrules/models/mappings/codepipeline.hcl (about)

     1  import = "aws-sdk-go/models/apis/codepipeline/2015-07-09/api-2.json"
     2  
     3  mapping "aws_codepipeline" {
     4    name     = PipelineName
     5    role_arn = RoleArn
     6  }
     7  
     8  mapping "aws_codepipeline_webhook" {
     9    name            = WebhookName
    10    authentication  = WebhookAuthenticationType
    11    target_action   = ActionName
    12    target_pipeline = PipelineName
    13  }
    14  
    15  test "aws_codepipeline" "name" {
    16    ok = "tf-test-pipeline"
    17    ng = "test/pipeline"
    18  }
    19  
    20  test "aws_codepipeline" "role_arn" {
    21    ok = "arn:aws:iam::123456789012:role/s3access"
    22    ng = "arn:aws:iam::123456789012:instance-profile/s3access-profile"
    23  }
    24  
    25  test "aws_codepipeline_webhook" "name" {
    26    ok = "test-webhook-github-bar"
    27    ng = "webhook-github-bar/testing"
    28  }
    29  
    30  test "aws_codepipeline_webhook" "authentication" {
    31    ok = "GITHUB_HMAC"
    32    ng = "GITLAB_HMAC"
    33  }
    34  
    35  test "aws_codepipeline_webhook" "target_action" {
    36    ok = "Source"
    37    ng = "Source/Example"
    38  }