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

AWS::Kendra::Index update of tags results in loss of tag #98

Open
JimOjpn opened this issue Feb 9, 2023 · 0 comments
Open

AWS::Kendra::Index update of tags results in loss of tag #98

JimOjpn opened this issue Feb 9, 2023 · 0 comments

Comments

@JimOjpn
Copy link

JimOjpn commented Feb 9, 2023

When creating a Kendra index the tags are correctly with the following:

  KendraIndex:
    Type: AWS::Kendra::Index
    Properties:
      CapacityUnits:
        QueryCapacityUnits: 1
        StorageCapacityUnits: 1
      Description: Box and other source files
      Edition: ENTERPRISE_EDITION
      Name: "kendra-index"
      RoleArn: !GetAtt KendraIndexIamRole.Arn
      ServerSideEncryptionConfiguration:
        KmsKeyId: !Ref ProcessingKMSKey
      Tags:
        - Key: Environment
          Value: !Ref EnvironmentType
        - Key: MarketCode
          Value: jp
        - Key: Organization
          Value: <text>
        - Key: Owner
          Value: <text>
        - Key: Project
          Value: !Ref ProjectName
        - Key: test-tag 
          Value: "test123" 

Results in:
Screen Shot 2023-02-09 at 11 57 45

When changing the test-tag and redeploying:

KendraIndex:
    Type: AWS::Kendra::Index
    Properties:
      CapacityUnits:
        QueryCapacityUnits: 1
        StorageCapacityUnits: 1
      Description: Box and other source files
      Edition: ENTERPRISE_EDITION
      Name: "kendra-index"
      RoleArn: !GetAtt KendraIndexIamRole.Arn
      ServerSideEncryptionConfiguration:
        KmsKeyId: !Ref ProcessingKMSKey
      Tags:
        - Key: CostCenter
          Value: !FindInMap [EnvironmentToCostCenterMap, !Ref EnvironmentType, CostCenter]
        - Key: Environment
          Value: !Ref EnvironmentType
        - Key: MarketCode
          Value: jp
        - Key: Organization
          Value: <text>
        - Key: Owner
          Value: <text>
        - Key: Project
          Value: !Ref ProjectName
        - Key: test-tag 
          Value: "test123345"

Results in the tag being deleted:

Screen Shot 2023-02-09 at 11 59 07

Expected behavior is for the tag value to be replaced.

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