I am having trouble with AWS Codepipeline, rather than deploying the entire Codecommit repo to an S3 bucket, I would like Codepipeline to only deploy a single file that was updated. The same question is asked here: Codepipeline: Deploy only specific files to s3 but I do not want any specific file. Any file whether its HTML or Css, only the one that is updated should be deployed to S3
I am using AWS CodeBuild, my deployment yaml file is this:
version: 0.2
phases:
  install:
    commands:
      - echo Entered the install phase...
      - apt-get update -y
build:
  commands:
    - echo Building...
artifacts:
  files:
    - index.html
  discard-paths: yes
  secondary-artifacts:
    artifact1:
      files:
        - index.html
Now in the above code instead of index.html in artifacts what should I write so that even if any other file is changed or updated, then only that single file should be updated in S3 bucket.
 
    