Created
January 14, 2018 05:03
-
-
Save rambabusaravanan/6dace3ea32e5c5b5f25368c4ed2b6e6e to your computer and use it in GitHub Desktop.
S3 Bucket image on-demand compression and conversion using AWS Lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RoutingRules> | |
<RoutingRule> | |
<Condition> | |
<KeyPrefixEquals/> | |
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals> | |
</Condition> | |
<Redirect> | |
<Protocol>https</Protocol> | |
<HostName>xxx1x11xxx.execute-api.us-east-1.amazonaws.com</HostName> | |
<ReplaceKeyPrefixWith>prod/convert?key=</ReplaceKeyPrefixWith> | |
<HttpRedirectCode>307</HttpRedirectCode> | |
</Redirect> | |
</RoutingRule> | |
</RoutingRules> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RoutingRules> | |
<RoutingRule> | |
<Condition> | |
<KeyPrefixEquals/> | |
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals> | |
</Condition> | |
<Redirect> | |
<Protocol>https</Protocol> | |
<HostName>xxx1x11xxx.execute-api.us-east-1.amazonaws.com</HostName> | |
<ReplaceKeyPrefixWith>prod/resize?key=</ReplaceKeyPrefixWith> | |
<HttpRedirectCode>307</HttpRedirectCode> | |
</Redirect> | |
</RoutingRule> | |
</RoutingRules> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment